From: Sergey Senozhatsky Date: Fri, 20 Aug 2010 07:36:34 +0000 (+0300) Subject: x86, hwmon: Fix unsafe smp_processor_id() in thermal_throttle_add_dev X-Git-Tag: v2.6.36-rc4~71^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e3c1b558b31b11bf5fc66d3c6f5adacf3573f7;p=pandora-kernel.git 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 LKML-Reference: <20100820073634.GB5209@swordfish.minsk.epam.com> Cc: Fenghua Yu Cc: Joerg Roedel Cc: Maciej Rutecki Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed