OSDN Git Service

hwmon: (coretemp) Increase CPU core limit
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 1 May 2012 15:15:42 +0000 (08:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:56:38 +0000 (08:56 -0700)
commitc31943d4c5e3facc3a67768090a2f3bf2eb757f3
tree29858361299209c9eb086603ca1138602a68194e
parentecc53109a021559a49beb81c9c4c859012ee975e
hwmon: (coretemp) Increase CPU core limit

commit bdc71c9a87b898e4c380c23b2e3e18071312ecde upstream.

CPU core ID is used to index the core_data[] array. The core ID is, however, not
sequential; 10-core CPUS can have a core ID as high as 25. Increase the limit to
32 to be able to deal with current CPUs.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/coretemp.c