Message ID | 1451222619-3610-9-git-send-email-noamc@ezchip.com |
---|---|
State | Deferred |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 82297140CDC for <incoming@patchwork.ozlabs.org>; Mon, 28 Dec 2015 00:28:46 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aDBNN-0000yd-0r; Sun, 27 Dec 2015 13:28:45 +0000 Received: from mail-am1on0087.outbound.protection.outlook.com ([157.56.112.87] helo=emea01-am1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aDBNL-0000vK-Gv for linux-snps-arc@lists.infradead.org; Sun, 27 Dec 2015 13:28:44 +0000 Received: from HE1PR02CA0084.eurprd02.prod.outlook.com (10.163.170.52) by AM4PR02MB1443.eurprd02.prod.outlook.com (10.165.242.145) with Microsoft SMTP Server (TLS) id 15.1.361.13; Sun, 27 Dec 2015 13:28:20 +0000 Received: from DB3FFO11FD038.protection.gbl (2a01:111:f400:7e04::173) by HE1PR02CA0084.outlook.office365.com (2a01:111:e400:5350::52) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Sun, 27 Dec 2015 13:28:20 +0000 Authentication-Results: spf=fail (sender IP is 212.179.42.66) smtp.mailfrom=ezchip.com; linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=ezchip.com; Received-SPF: Fail (protection.outlook.com: domain of ezchip.com does not designate 212.179.42.66 as permitted sender) receiver=protection.outlook.com; client-ip=212.179.42.66; helo=ezex10.ezchip.com; Received: from ezex10.ezchip.com (212.179.42.66) by DB3FFO11FD038.mail.protection.outlook.com (10.47.217.69) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Sun, 27 Dec 2015 13:28:19 +0000 Received: from localhost.localdomain (10.1.3.132) by ezex10.ezchip.com (10.1.1.4) with Microsoft SMTP Server (TLS) id 14.3.224.2; Sun, 27 Dec 2015 15:28:18 +0200 From: Noam Camus <noamc@ezchip.com> To: <linux-snps-arc@lists.infradead.org> Subject: [PATCH v5 08/20] ARC: Mark secondary cpu online only after all HW setup is done Date: Sun, 27 Dec 2015 15:23:27 +0200 Message-ID: <1451222619-3610-9-git-send-email-noamc@ezchip.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1451222619-3610-1-git-send-email-noamc@ezchip.com> References: <1451222619-3610-1-git-send-email-noamc@ezchip.com> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22026.007 X-TM-AS-Result: No--4.311900-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD038; 1:973ilomYS3YD/J+05LuCuj7XB9gtFMigX9LoyLLqVdjgny9a3Wt60d/b1SL/SHMovaRWs8lRPBFX1kICqRJZrgpnpGIxHj40Qm9c8acyK1WRYEquZIYDfXXwuFaPivAR9/xis2eNzSuT5EzgNotbasAePcGq8f5V2TFJ9bO4vQh1w74DnRMbDSaXo4E/UL6MJBmdn2CEjDZUlCr2j1NRKsM/cZEvIDyDyQXMJD11de9t3/HPUZHFZHj12E0CdDzhulNl6lgyTwRKH2dDYSDEgX/pf0gBCfI7NwpvcTg2I/n8EpwOZbIgs151gURXTqJuGkrKzXQsXBQQqiIljyokp7A3a5GmhlE833Qj+FafvnJnlQERXiT8eDFRKfEdNWFCn0xLSI9kxApR60UZjiy+/WmX4v24pvr7T6MkoefWMfU= X-Forefront-Antispam-Report: CIP:212.179.42.66; CTRY:IL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(106466001)(4001430100002)(50986999)(36756003)(76176999)(5008740100001)(47776003)(33646002)(104016004)(6806005)(19580395003)(2351001)(1220700001)(1096002)(229853001)(189998001)(50466002)(50226001)(48376002)(110136002)(85426001)(19580405001)(2950100001)(586003)(92566002)(77096005)(11100500001)(87936001)(107886002)(5001970100001)(49486002)(5003940100001)(105606002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR02MB1443; H:ezex10.ezchip.com; FPR:; SPF:Fail; PTR:ezmail.ezchip.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM4PR02MB1443; 2:5Fkqp+Gadp/+1qi8+c6er/PLA7gsbFQxsccgLemdpxmkCptAjF5Efzv6zUzbdaBPF68xyzU2GIYbeLEt/K8XcpYu3QYZASviXcdtfHCzdQGrn3+Ys4cg2zqEAWbMz07DaLbWtwdTO4e8zLart8cOqg==; 3:vL6hCJOjim9oY7a8yOvdfAgtRk1UHceOVHS9ZeL9g6D3+iYzi/7WuT5hpr9gfcdcJPEg+u+4GPunI5xzibuKS1nwtUch3FW6OSinMD+mYzYJXuYvtUgD4Z6ktWrLqeyPJal3MKBA3nqTbmJL6547ZtdUr8oPpYuZRYeZNGUtdKZFKV4dJZ/DojCUyR8V2gDSKKG+ujUm/BgWy66qGzYNNMXX/izj7AhNrrDh77Pu8xo=; 25:82nL6aPR5GCgDfQHSm2h19rFWrrcAABSlOgJlVRGikbzq6wPx1GzbGYdVcbIAFTTIQw1wFBPmaMZhe9ACe7Fn5WNIGsB9Q9PBn+iNLA7/U5CwJ2UNsQ7P6aMTV+A2XI4Q66pvBy2ZuodpQKevA5CJ96x4I3YDLaDx0DB3oXW1g8sRK1aZk7Sgq8SZkfk5jWBRikIC+pkuxSVe9to0rDvRBxu33qnjVlIE1HYegZA3RpbpybnY0dsQI+vws3qHe4T1XfktDsgQVCSti9rGJ1d2g==; 20:obJtgBrQ33hdyaennoOXJ4pToTFXfJ2RCtqL6MLRC5orVLh4yMIhpSAvk20iXHtmvb5Yeg0x/KT79ij5P0gIPwQmGeaHGdMx+iJf95DE1bQ/oClAzefBxZ69xQLMluJwBSReoWfObRyp9o4SYneRHZZnbIo5SHOQOvLaCspmVPc= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM4PR02MB1443; X-Microsoft-Antispam-PRVS: <AM4PR02MB14439714163CA57996B775CAD6FA0@AM4PR02MB1443.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(121898900299872); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:AM4PR02MB1443; BCL:0; PCL:0; RULEID:; SRVR:AM4PR02MB1443; X-Microsoft-Exchange-Diagnostics: 1; AM4PR02MB1443; 4:I11/wwc/5p16ClIfAvQCAs3KvLGR6jRYuFfrVf3ZtVCJMLoM107L8UxEn4XaFnApC7GrupU8wkE3nKEtQQKDija0hnmnE3QPhAYWEVB9wJWKIx4jm5C0TPw07zPcMUpTc5dxDDaOMsD3ipGup557Hum9POiKhhRzJ39DEhea4orBu8IZCVAsDfl33caekcg0buxKXcRCPDa7ObgvZ9sEeBkJMqqiVOUJMiokT6kQP4xrN7moKCSlUN8n6OD0CWLlSrmFQIg86Hco7WrFiiWeTvw2UFpyqbIFxMDEpuDD58+CKW73rD9q/I2nzltYk8ttvpEE74Q9ERKOgt0ctBQrsQqqvuJcPhfxOBLp7LUn4pJWzPCv1ijuTk7tkdRW/uBt1SYac39HQU2EaXM5e3q27y/pzj3h9aoFiWJgr378IvzE2kIKuEFgTxEQ+b9prJiH X-Forefront-PRVS: 0803A0241F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR02MB1443; 23:NivHi3YgRv6kIu5hNu/0lVbHwxJ9D7uY7428Oad2c?= =?us-ascii?Q?R+VznCSij8bc1Ou+1IgrFMapsHqATZrND7MDWPK7gFRnHtctPtGbEDBbbo9E?= =?us-ascii?Q?t1ddlL24oana058ty76af5a64LZjDNf2B/Dtrp0bafag0LamuL/o/lmuZwqW?= =?us-ascii?Q?k6qJe+kUD2c9zMf0ikPbH2/ZWAbksttjYiwn9ifW/C3q1BLyGlF1KnSSYxZn?= =?us-ascii?Q?cY3vCErhKhql6uWQIyZKo+nC18+B2jeceDq7pCDCrenqJDpQFp8id/I873Rj?= =?us-ascii?Q?8Ac+MHqh+uiKz79yhpruXKUuXCpDhsBVRYMcU03zgo7PQezJv4MJl68Bh1Lx?= =?us-ascii?Q?/KXdJUNPu77mQkWxCCOOk4wA03dXDia1xbEewW80UVQcKshaah/ggDX/OasG?= =?us-ascii?Q?pnq3ROz6uEMXTunH5xfaGTx4NV7qMUPSeb0TzK8SsKopCvRWwiPBUtrtsW+s?= =?us-ascii?Q?A2lZ2E8HoSQEDklPymAmY58Ug0bJ4J9DP99GetS3qwrGn3nOnB2Hro5lcjul?= =?us-ascii?Q?FivcIBZxM+VeugywPsTrR17ADxa7uUBeG6M/N3nUgg4DorKdZxBH6AVkTffw?= =?us-ascii?Q?kIelnZqx6necS1H+O438yTquNPMswfvQepHRTGbkM9NhcrwfAguBWmnDw9Gk?= =?us-ascii?Q?lR1uj/2jB+LLLUP+nvYOuctiSffbryOc/No32pUYoUaD29dydcagFBk1iy/+?= =?us-ascii?Q?H5HChq3LTSY8r4djMgD7NtXzOOW9+rvsqhyUUoN1GpFPfdhH7VfY5W0RzdjQ?= =?us-ascii?Q?yEPMldu8sk94K2OQkRTfntLoYJxFhqy6obdLmzNLDcLQLJ1pp5WnXLsXjUS3?= =?us-ascii?Q?UVJdFJDUC36YS4OFZ9RnjD557327vr+Sn47gmInBS2FKxw8S/MIu3jiRGbmm?= =?us-ascii?Q?7E3ppy8vBD22Va4cY95kaYrikCetlR2xOarSJ81qCfrxek2DgPv4T2dMwKYO?= =?us-ascii?Q?r5VJ0mJcMbddnxulaZ/YLHKIt0RZ7+KpVKdgSgh9ykQ2vewCJ6jR8/rxs6fb?= =?us-ascii?Q?ToX133IdzeQHm3Dl8QddIMtnFfqn/ZITj6JekZKrqvrisKmOmx4EFRmqaZT+?= =?us-ascii?Q?L/NTVO5OhqaAHBEONzqG/RP8PEeMhelGwvhMeYxt7eiGMa5/Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR02MB1443; 5:0zjNHCiP+F8B9YR2AsKWOmFdNw79jA9Mq8wQAxRq/2U4taCaT8whqAUvpgrPiw31rcNfwOeFab74AtqVrf1jvrQYc8R9BNSrysloA4rOzbYpISA/R9IOJXOla9/UdKfw8G/NAzjZBBcXH5fhQzIXcA==; 24:itu9u+30XpM1iBYnFedWACbmHhqeML8YpHsLIeBqeVSC9cPgdlcLJcFvOl1eOkBBeK2fwJd8Rx50ETkQrchqZX0jLXmK4NALz5T5PxuaE/Y= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2015 13:28:19.6887 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3; Ip=[212.179.42.66]; Helo=[ezex10.ezchip.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR02MB1443 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151227_052843_963547_2FA1F8D2 X-CRM114-Status: UNSURE ( 5.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [157.56.112.87 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [157.56.112.87 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Cc: marc.zyngier@arm.com, cmetcalf@ezchip.com, daniel.lezcano@linaro.org, Noam Camus <noamc@ezchip.com>, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/arch/arc/kernel/smp.c b/arch/arc/kernel/smp.c index ef6e9e1..2cfe135 100644 --- a/arch/arc/kernel/smp.c +++ b/arch/arc/kernel/smp.c @@ -126,11 +126,6 @@ void start_kernel_secondary(void) current->active_mm = mm; cpumask_set_cpu(cpu, mm_cpumask(mm)); - notify_cpu_starting(cpu); - set_cpu_online(cpu, true); - - pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu); - /* Some SMP H/w setup - for each cpu */ if (plat_smp_ops.init_per_cpu) plat_smp_ops.init_per_cpu(cpu); @@ -138,6 +133,11 @@ void start_kernel_secondary(void) if (machine_desc->init_per_cpu) machine_desc->init_per_cpu(cpu); + notify_cpu_starting(cpu); + set_cpu_online(cpu, true); + + pr_info("## CPU%u LIVE ##: Executing Code...\n", cpu); + arc_local_timer_setup(); local_irq_enable();