OSDN Git Service

hwmon: (coretemp) Use PCI host bridge ID to identify CPU if necessary
authorGuenter Roeck <linux@roeck-us.net>
Mon, 27 May 2013 19:20:19 +0000 (12:20 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 15 Jan 2014 05:36:30 +0000 (21:36 -0800)
commit14513ee696a0cd12a19318e433b75a786808adc3
tree1fd6688393ff985910f51d5036432c4d5aea906e
parentcd9bb0564c551f8a72763dd45590e9ea6787811e
hwmon: (coretemp) Use PCI host bridge ID to identify CPU if necessary

Atom S12x0 CPUs are identified by the CPU host bridge ID. Add an override
table based on PCI IDs as well as code to detect it.

PCI access functions can now be called with PCI disabled, so unlike previous
attempts to use PCI IDs, the code no longer depends on it. If PCI is disabled,
the CPU will not be identified correctly. Since it is unlikely that anything
will work in this case, this is an acceptable limitation.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c