aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_conservative.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2007-02-05 19:12:43 -0500
committerDave Jones <davej@redhat.com>2007-02-10 20:01:47 -0500
commitc120069779e3e35917c15393cf2847fa79811eb6 (patch)
tree9e1e5529b43c151ecc9d3743e5b51ff88eb52312 /drivers/cpufreq/cpufreq_conservative.c
parent86acd49aa128bd7a1d4362c256c21fbdc2d5b1a0 (diff)
[CPUFREQ] Remove hotplug cpu crap
The hotplug CPU locking in cpufreq is horrendous. No-one seems to care enough to fix it, so just remove it so that the 99.9% of the real world users of this code can use cpufreq without being bothered by warnings. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r--drivers/cpufreq/cpufreq_conservative.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index eef0270c6f3d..787e8417c106 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -430,14 +430,12 @@ static void dbs_check_cpu(int cpu)
430static void do_dbs_timer(struct work_struct *work) 430static void do_dbs_timer(struct work_struct *work)
431{ 431{
432 int i; 432 int i;
433 lock_cpu_hotplug();
434 mutex_lock(&dbs_mutex); 433 mutex_lock(&dbs_mutex);
435 for_each_online_cpu(i) 434 for_each_online_cpu(i)
436 dbs_check_cpu(i); 435 dbs_check_cpu(i);
437 schedule_delayed_work(&dbs_work, 436 schedule_delayed_work(&dbs_work,
438 usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); 437 usecs_to_jiffies(dbs_tuners_ins.sampling_rate));
439 mutex_unlock(&dbs_mutex); 438 mutex_unlock(&dbs_mutex);
440 unlock_cpu_hotplug();
441} 439}
442 440
443static inline void dbs_timer_init(void) 441static inline void dbs_timer_init(void)