Andrea Righi
4f6e6b9f97
[CPUFREQ] Fix BUG: using smp_processor_id() in preemptible code
Use get_cpu()/put_cpu() in cpufreq_ondemand init routine, instead of
smp_processor_id() to avoid the following BUG:
[ 35.313118] BUG: using smp_processor_id() in preemptible [00000000] code=: modprobe/4952
[ 35.313132] caller is cpufreq_gov_dbs_init+0xa/0x8f [cpufreq_ondemand]
[ 35.313140] Pid: 4952, comm: modprobe Not tainted 2.6.27-rc5-mm1 #23
[ 35.313145] Call Trace:
[ 35.313158] [<ffffffff80361ff7>] debug_smp_processor_id+0xd7/0xe0
[ 35.313167] [<ffffffffa010800a>] cpufreq_gov_dbs_init+0xa/0x8f [cpufreq_ondemand]
[ 35.313176] [<ffffffff8020903b>] _stext+0x3b/0x160
[ 35.313185] [<ffffffff804768c5>] __mutex_unlock_slowpath+0xe5/0x190
[ 35.313195] [<ffffffff8026236a>] trace_hardirqs_on_caller+0xca/0x140
[ 35.313205] [<ffffffff8026ef4c>] sys_init_module+0xdc/0x210
[ 35.313212] [<ffffffff8020b7cb>] system_call_fastpath+0x16/0x1b
Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
Signed-off-by: Dave Jones <davej@redhat.com>
2008-10-09 13:52:44 -04:00
..
2008-10-02 15:53:13 -07:00
2008-10-03 18:22:19 -07:00
2008-09-29 00:14:34 -04:00
2008-08-23 12:14:12 -07:00
2008-08-21 10:15:37 -07:00
2008-08-27 13:42:00 -07:00
2008-10-06 12:22:52 +02:00
2008-08-18 21:40:04 +02:00
2008-09-26 10:36:42 -05:00
2008-09-11 11:14:29 +02:00
2008-10-09 13:52:44 -04:00
2008-08-15 21:25:35 +02:00
2008-09-14 13:41:19 -07:00
2008-10-03 18:22:18 -07:00
2008-08-23 12:14:12 -07:00
2008-08-19 18:47:56 +02:00
2008-09-02 19:21:40 -07:00
2008-09-01 08:51:52 +10:00
2008-08-08 16:23:01 -04:00
2008-09-20 10:25:20 +02:00
2008-09-24 13:39:21 +02:00
2008-10-05 18:23:28 +02:00
2008-08-19 18:47:56 +02:00
2008-09-25 16:37:03 -07:00
2008-09-22 07:46:06 -07:00
2008-10-03 18:22:18 -07:00
2008-08-26 00:19:28 +10:00
2008-10-01 14:39:27 +01:00
2008-10-07 07:54:34 -07:00
2008-09-13 14:41:52 -07:00
2008-09-30 09:57:22 +02:00
2008-09-13 14:41:52 -07:00
2008-10-06 14:26:24 -07:00
2008-09-05 15:34:35 +01:00
2008-10-03 09:18:17 -07:00
2008-08-20 09:50:21 +10:00
2008-08-26 10:24:46 +10:00
2008-10-02 18:52:51 -07:00
2008-09-22 08:42:50 -07:00
2008-08-25 12:04:44 +02:00
2008-08-07 09:55:48 +01:00
2008-10-03 18:22:17 -07:00
2008-10-03 21:55:55 +02:00
2008-08-11 14:30:53 -07:00
2008-09-29 09:41:56 +02:00
2008-09-23 08:09:14 -07:00
2008-10-03 18:22:18 -07:00
2008-09-27 15:45:37 +01:00
2008-08-21 10:15:39 -07:00
2008-09-23 13:58:10 -07:00
2008-10-03 18:22:17 -07:00
2008-08-26 00:19:25 +10:00
2008-09-23 08:09:13 -07:00
2008-09-08 20:21:15 +02:00
2008-08-13 17:33:00 -07:00