x86, hwmon: Fix unsafe smp_processor_id() in thermal_throttle_add_dev
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Fri, 20 Aug 2010 07:36:34 +0000 (10:36 +0300)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 21 Aug 2010 02:56:00 +0000 (19:56 -0700)
Fix BUG: using smp_processor_id() in preemptible thermal_throttle_add_dev.
We know the cpu number when calling thermal_throttle_add_dev, so we can
remove smp_processor_id call in thermal_throttle_add_dev by supplying
the cpu number as argument.

This should resolve kernel bugzilla 16615/16629.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
LKML-Reference: <20100820073634.GB5209@swordfish.minsk.epam.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Joerg Roedel <Joerg.Roedel@amd.com>
Cc: Maciej Rutecki <maciej.rutecki@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

No differences found