Message ID | 1477813722-30832-1-git-send-email-noamca@mellanox.com |
---|---|
State | New |
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 3t68lg6HkJz9t1H for <incoming@patchwork.ozlabs.org>; Sun, 30 Oct 2016 18:49:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b=uC1WXMVI; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c0kry-0007D3-HQ; Sun, 30 Oct 2016 07:49:30 +0000 Received: from mail-eopbgr50043.outbound.protection.outlook.com ([40.107.5.43] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c0krv-0007Aa-M6 for linux-snps-arc@lists.infradead.org; Sun, 30 Oct 2016 07:49:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3+92jJZu2nNffZe6p1VZ5RnuuZFA718qdU6m/wa965Q=; b=uC1WXMVIerUtYfGnduSCbSNPDLUHFZONw9kaq8GiSb+Qf28K3WhMtIbyGwuit/LRkVRClyovKb7+lNBR+UxPStHO4LuspvUY0sXfez9tNRJAWM0ULNJsAtE/vvYwpbbMl3DZaZFW+duU0rQXFyKdJ1/fB3tK33HthtjZVMcuS9g= Received: from HE1PR05CA0096.eurprd05.prod.outlook.com (10.169.113.150) by AM4PR05MB1890.eurprd05.prod.outlook.com (10.167.91.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12; Sun, 30 Oct 2016 07:49:03 +0000 Received: from DB3FFO11FD003.protection.gbl (2a01:111:f400:7e04::115) by HE1PR05CA0096.outlook.office365.com (2a01:111:e400:7a1a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12 via Frontend Transport; Sun, 30 Oct 2016 07:49:03 +0000 Authentication-Results: spf=pass (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=pass action=none header.from=mellanox.com; Received-SPF: Pass (protection.outlook.com: domain of mellanox.com designates 193.47.165.134 as permitted sender) receiver=protection.outlook.com; client-ip=193.47.165.134; helo=mtlcas13.mtl.com; Received: from mtlcas13.mtl.com (193.47.165.134) by DB3FFO11FD003.mail.protection.outlook.com (10.47.216.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.6 via Frontend Transport; Sun, 30 Oct 2016 07:49:02 +0000 Received: from MTLCAS13.mtl.com (10.0.8.78) by mtlcas13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Sun, 30 Oct 2016 09:49:01 +0200 Received: from MTLCAS01.mtl.com (10.0.8.71) by MTLCAS13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Sun, 30 Oct 2016 09:49:01 +0200 Received: from ezex10.ezchip.com (10.0.13.1) by MTLCAS01.MTL.COM (10.0.8.71) with Microsoft SMTP Server (TLS) id 14.3.301.0; Sun, 30 Oct 2016 09:48:59 +0200 Received: from localhost.localdomain (10.1.3.58) by ezex10.ezchip.com (10.1.1.4) with Microsoft SMTP Server (TLS) id 14.3.224.2; Sun, 30 Oct 2016 09:48:59 +0200 From: Noam Camus <noamca@mellanox.com> To: <vgupta@synopsys.com> Subject: [PATCH] ARC: [SMP] avoid overriding present cpumask Date: Sun, 30 Oct 2016 09:48:42 +0200 Message-ID: <1477813722-30832-1-git-send-email-noamca@mellanox.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22520.000 X-TM-AS-Result: No--3.270700-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Received-SPF: None (MTLCAS01.mtl.com: noamca@mellanox.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:193.47.165.134; IPV:NLI; CTRY:IL; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(48376002)(81166006)(2906002)(81156014)(229853001)(19580395003)(6666003)(2351001)(19580405001)(106466001)(47776003)(8676002)(189998001)(4326007)(5660300001)(5003940100001)(6916009)(110136003)(11100500001)(626004)(107886002)(50986999)(36756003)(586003)(4001430100002)(7846002)(77096005)(92566002)(87936001)(50226002)(49486002)(8936002)(86362001)(575784001)(33646002)(50466002)(305945005)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB1890; H:mtlcas13.mtl.com; FPR:; SPF:Pass; PTR:mail13.mellanox.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD003; 1:2dIVhVl2fqDPQKLi4ZSb5iE4/eNKLgl8uQw9/TabNwY5NED/W34ifeeSonQyAhYkh/U2M16clOz9KwNaEB56FE+s9h+Pp4pv0Vtd7p53CcWRVn50mEkfAsR1q48x+RjtETJhhrt/6HHXcSxVfVJD5xmFv+YcpK6JedBEuS2iNHJi0QVXXjIXwsbAB0wh8FVvMzhqdSH4xjapYQpmrekGyfxv/UAVPKbleCbfm7yqIbE72N5+0cvICeGoNh2TQbs+v86ycthfRQDIa5NpXmyMHY6kuxejOdU/j3UM6bmJHA/sgxjSnESsnj1QD7DkeO1une1/+Ti4N1npxDJsXRnFI6UE96yVSbLnBX/8ePjiz4iIg1ZRPqya2QIBPiiZAXxnHzqcPeWBZklZDTs0MUnGD5KQgNpIvno5lf/F7RibNIS31i9ByCRMAieuynwr4aWv4ijpcy15QKZY9dROrnPcw58JQ+JJCIcPeq/y9axPQyj+keG+0aOaynKof8S/yd44KqnZovgFZZ5logfdzngpNAL5ia7x9QM3RRJ4gbG8P5soBK+gN2hTiTCBotdzP0Nk X-MS-Office365-Filtering-Correlation-Id: 57202d3d-e246-4809-d8a3-08d4009937ba X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB1890; 2:lxsfGjb8JJm+jKlG5AFYI5XY9N3b6l76bdP3sZBMs7kQ6Gh5JRuOEgvr4x1BXw/7plZzb67jj8V7nGb7LKMyeeRawOR4INyZX9DMtu1udorJWwFefv/17i4gZdshcrs+58CG+1cu1v0da6A7RW4zQY6GGTlie5P4SEd6AIGv3AbPU1lg+WrIqpkw8Xkw1vBaxcBtOeCCM7GtwQC0YpkybQ==; 3:QTvbutpF8Omo+U7jk4hET07QkO1QvOSOwFuDu9mLDPJyFvEYWYcmszx8PdcKK5sEFmEkVFyoGsWsi/Qyd4ZRKlCglfxXW7ArbQ7AH1Asr7F0tp59ATqq72Vg94h4BDIelMMWKvYJfMBn6W+V6JnjUEIW8xe4Z/+5glZyJdCyE/jBBCS54Jj0UwTbawH9F75N7ZzL1XcQ08/PLly5WgIt6OdKLVvcORKvEp+NkMz2UxehiG9KPVM8F/G/ym/JLu385JsdPVdhI8RIQVTxKO8goTIHEJNpMcnSuJf1motZcXg= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:AM4PR05MB1890; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB1890; 25:X60ZwwswtNNN+31tlY1d5ilj9Gwj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U5Ywx/L9tSZ7llqXdrWDObx8ShHaPVnEX0OXwVnQcMejtGBbRZ8Y75xheC/5SfxWSn6qwlHrCN1E0USZL3hKyJzNzxvXFyuI5GrwKhJYo8mrtBdatHiCgXApTiuXaHNJvrOa18eCTdC1Krh/NOv3eY9BOcaHNW X-Microsoft-Antispam-PRVS: <AM4PR05MB189020F35F3C8B843F863763AAAF0@AM4PR05MB1890.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:AM4PR05MB1890; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB1890; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB1890; 4:HpBTPZbZe83WwcOVHsSX3nuL1tsYh/sZZqnD9PmyzR3x88c/PiiFovyssUwtSSPbGueR/m++rlOcLWXv8+ZWFwhLcHHC0j8k8GblPTtgKC2p63RQsWMpx5dxw5pWd0UgRFGYu24au7pMryw9ysBqbS+yhIAdrIpTHbsCEhNMoQO4P8p7zUQEZVeJh+nolhOtIYpthITWUJ6Y1AhF0sJfm81CJhD/lsJypZKZscXP4+fnd/SL+bmNHZGyOGbv4Rh3sG8Xp+ySJvdZo0xC2xSWDpK4qj09/53RtjsQ/4aUisKo0S4P4rSBq88wFCmD0ZPgBTsnaLciTO+mlchI6+h5fdiBNel1duYkZZbeadFJwMYIx7xe/wFgxqfaSTkBSZn0y7wiqJ5K1NekUxeMzG1aLp93s05dMvTTD7WPT9DtYm3mK8thfb0gNdj6mgtIQmWPJ+UZDPfWQqeEj2EhTLmt0w== X-Forefront-PRVS: 01110342A5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR05MB1890; 23:R1zKG1H1L9wJk8pgXXv4GsI+R6sLrFBAdkmsl7oS+?= =?us-ascii?Q?WB7OKmgCVL42EAGDEgCNYBBwNrUe2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GOyr2rAIPBYIdVNRn4MPLIIOd1lbc2v9SbrZ8geGJtVoapsetlFAVBNvJ8kkyq1ons6tq3j5tGZOES3I3rx5ekw3ySPcCvwQJHCI2xiOrSh7TIP5it4GLpEpbPlzIk91KtxsXGoqvHvQkwxV+1ncmRRHECkpdJAfDddWsNgswLaU/CFynEdbIMlXnrlg596wyo7qZIzfkPPlFXCJxDn3+YpLznrOQMPoGBr7MnjY/j5Exsmvm8mOzakqyEc4y3eAcWk9xUU= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2016 07:49:02.3114 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b; Ip=[193.47.165.134]; Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB1890 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161030_004928_170192_F32E8936 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [40.107.5.43 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [40.107.5.43 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] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: Noam Camus <noamca@mellanox.com>, linux-snps-arc@lists.infradead.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 03d5151..8c0eec9 100644 --- a/arch/arc/kernel/smp.c +++ b/arch/arc/kernel/smp.c @@ -71,8 +71,10 @@ void __init smp_prepare_cpus(unsigned int max_cpus) * Initialise the present map, which describes the set of CPUs * actually populated at the present time. */ - for (i = 0; i < max_cpus; i++) - set_cpu_present(i, true); + if (num_present_cpus() <= 1) { + for (i = 0; i < max_cpus; i++) + set_cpu_present(i, true); + } } void __init smp_cpus_done(unsigned int max_cpus)