]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d503ea9540b6cfe1f86829af042f861c38d0d34
tree1fd6688393ff985910f51d5036432c4d5aea906e
parenta05f17c40ead68c923840695fe596bca0a6b3179
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