Andreas Herrmann
05366b68ce
cpufreq / powernow-k8: Remove usage of smp_processor_id() in preemptible code
commit e4df1cbcc1 upstream.
Commit 6889125b8b
(cpufreq/powernow-k8: workqueue user shouldn't migrate the kworker to another CPU)
causes powernow-k8 to trigger a preempt warning, e.g.:
BUG: using smp_processor_id() in preemptible [00000000] code: cpufreq/3776
caller is powernowk8_target+0x20/0x49
Pid: 3776, comm: cpufreq Not tainted 3.6.0 #9
Call Trace:
[<ffffffff8125b447>] debug_smp_processor_id+0xc7/0xe0
[<ffffffff814877e7>] powernowk8_target+0x20/0x49
[<ffffffff81482b02>] __cpufreq_driver_target+0x82/0x8a
[<ffffffff81484fc6>] cpufreq_governor_performance+0x4e/0x54
[<ffffffff81482c50>] __cpufreq_governor+0x8c/0xc9
[<ffffffff81482e6f>] __cpufreq_set_policy+0x1a9/0x21e
[<ffffffff814839af>] store_scaling_governor+0x16f/0x19b
[<ffffffff81484f16>] ? cpufreq_update_policy+0x124/0x124
[<ffffffff8162b4a5>] ? _raw_spin_unlock_irqrestore+0x2c/0x49
[<ffffffff81483640>] store+0x60/0x88
[<ffffffff811708c0>] sysfs_write_file+0xf4/0x130
[<ffffffff8111243b>] vfs_write+0xb5/0x151
[<ffffffff811126e0>] sys_write+0x4a/0x71
[<ffffffff816319a9>] system_call_fastpath+0x16/0x1b
Fix this by by always using work_on_cpu().
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2012-10-30 23:26:54 +00:00
..
2011-07-13 18:29:49 -04:00
2011-09-08 11:10:55 +02:00
2011-10-26 17:15:03 +02:00
2011-05-04 11:50:57 -04:00
2011-05-04 11:50:57 -04:00
2011-10-31 19:31:31 -04:00
2011-05-04 11:50:57 -04:00
2011-05-19 18:51:07 -04:00
2011-06-28 13:54:26 -07:00
2011-11-11 22:28:33 -05:00
2011-10-26 17:19:46 -04:00
2011-05-19 18:51:07 -04:00
2011-10-26 17:19:46 -04:00
2011-05-04 11:50:57 -04:00
2011-05-19 18:51:07 -04:00
2011-07-25 22:59:39 -07:00
2011-07-13 18:29:53 -04:00
2011-07-19 15:13:04 +10:00
2011-05-19 17:55:12 -07:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-07-25 22:59:39 -07:00
2011-07-19 15:13:04 +10:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-09-14 18:09:38 -07:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2012-10-30 23:26:54 +00:00
2011-05-19 18:51:07 -04:00
2011-10-31 19:31:32 -04:00
2011-07-13 18:30:00 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00