Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753857AbbGQTgk (ORCPT ); Fri, 17 Jul 2015 15:36:40 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:51328 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbbGQTgi (ORCPT ); Fri, 17 Jul 2015 15:36:38 -0400 Message-ID: <55A95942.4060605@roeck-us.net> Date: Fri, 17 Jul 2015 12:36:34 -0700 From: Guenter Roeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Jean Delvare , "Odzioba, Lukasz" CC: "Yu, Fenghua" , lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: coretemp: use list instead of fixed size array for temp data References: <1436976253-4810-1-git-send-email-lukasz.odzioba@intel.com> <20150715230734.76347af2@endymion.delvare> <55A93365.4000702@roeck-us.net> <20150717211103.66000d47@endymion.delvare> In-Reply-To: <20150717211103.66000d47@endymion.delvare> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 589 Lines: 19 Hi Jean, On 07/17/2015 12:11 PM, Jean Delvare wrote: > > We could just drop NUM_REAL_CORES and use CONFIG_NR_CPUS instead, I > would be fine with that. This lets people worried about memory > consumption control it. > Unfortunately this won't work because the CPU ID is non-linear; an 8-core system may have a CPI ID larger than 7. Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/