Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S945321AbcJSPet (ORCPT ); Wed, 19 Oct 2016 11:34:49 -0400 Received: from mail-db5eur01on0048.outbound.protection.outlook.com ([104.47.2.48]:39452 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S945101AbcJSPeq (ORCPT ); Wed, 19 Oct 2016 11:34:46 -0400 From: Noam Camus To: Vineet Gupta CC: "linux-snps-arc@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] ARC: Adjust cpuinfo for non-continuous cpu ids Thread-Topic: [PATCH] ARC: Adjust cpuinfo for non-continuous cpu ids Thread-Index: AQHSKUYmiZb66VX/lk2e/uoecT3306CufUCAgADW9+A= Date: Wed, 19 Oct 2016 08:01:02 +0000 Message-ID: References: <1476798435-8357-1-git-send-email-noamca@mellanox.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=noamca@mellanox.com; x-originating-ip: [212.179.42.66] x-ms-office365-filtering-correlation-id: 596c66d6-97c6-410f-3596-08d3f7f61269 x-microsoft-exchange-diagnostics: 1;DB6PR0501MB2517;7:GNG3rkjZ+3ztTmttucHYhAahFD6KgXuCoBjKzAjXXp+bypdewbDNWQWeWmqVQXYA28PqQyZpr2ISVZku2KeKd67KjmJFTT+OpDSBFtzTFqnx3cuilXlsvTqkGvuAdbkBujI4pHD6d/1uRWgdIsrscd23X6w+tppYHhew/dMVDtO3iPB7mrO2m7QQanzkSElZFjnlX1ij7e/6yG21eLVMU7o+o1Gkssqg5CfJ/dLRMAf0WdnWwQlvZmw7N9qVK6HFlDxpqRrE39lt2Qb7ClDhZnN4Hs515UvdzND3Ftfu7xdCPMmlufomK5xAuNfeCiAzrCueRsVeG87EVHMDtW21fvW6KeKVPY7sV53dmh7k8s4= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0501MB2517; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:DB6PR0501MB2517;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0501MB2517; x-forefront-prvs: 0100732B76 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(199003)(51914003)(189002)(377454003)(7846002)(74316002)(81156014)(54356999)(8676002)(586003)(66066001)(189998001)(5002640100001)(9686002)(92566002)(50986999)(101416001)(76176999)(106116001)(76576001)(81166006)(122556002)(97736004)(6116002)(4326007)(105586002)(11100500001)(68736007)(33656002)(19580405001)(305945005)(106356001)(3660700001)(86362001)(19580395003)(77096005)(7696004)(87936001)(2900100001)(10400500002)(102836003)(8936002)(110136003)(2906002)(3280700002)(7736002)(6916009)(3846002)(2950100002)(5660300001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2517;H:DB6PR0501MB2518.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2016 08:01:02.8489 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2517 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u9JFYuDs018246 Content-Length: 580 Lines: 15 > From: Vineet Gupta [mailto:Vineet.Gupta1@synopsys.com] > Sent: Tuesday, October 18, 2016 8:49 PM >> >> num_possible_cpus() returns how many CPUs may be present on system. >> However we want the highest possible CPU number. > >Highest possible number "Detected" at boot ? Can you explain a bit more ! While trying to provide explanation I decided to "rethink" on this patch. Its effect is not visible to you due to another "local" patch I use which justify this patch. I need to reconsider both patches (maybe I will even remove both of them). Thanks for the feedback. Noam