diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2010-08-20 10:36:34 +0300 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-08-20 19:56:00 -0700 |
commit | 51e3c1b558b31b11bf5fc66d3c6f5adacf3573f7 (patch) | |
tree | 546a9fb1ce564927e8a3e7929333fc477defbe37 /arch/arm/mach-pxa/devices.c | |
parent | 36423a5ed5e4ea95ceedb68fad52965033e11639 (diff) |
x86, hwmon: Fix unsafe smp_processor_id() in thermal_throttle_add_dev
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>
Diffstat (limited to 'arch/arm/mach-pxa/devices.c')
0 files changed, 0 insertions, 0 deletions