diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index eef0270c6f3d..26f440ccc3fb 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/fs.h> | 23 | #include <linux/fs.h> |
24 | #include <linux/sysfs.h> | 24 | #include <linux/sysfs.h> |
25 | #include <linux/cpu.h> | 25 | #include <linux/cpu.h> |
26 | #include <linux/sched.h> | ||
27 | #include <linux/kmod.h> | 26 | #include <linux/kmod.h> |
28 | #include <linux/workqueue.h> | 27 | #include <linux/workqueue.h> |
29 | #include <linux/jiffies.h> | 28 | #include <linux/jiffies.h> |
@@ -430,14 +429,12 @@ static void dbs_check_cpu(int cpu) | |||
430 | static void do_dbs_timer(struct work_struct *work) | 429 | static void do_dbs_timer(struct work_struct *work) |
431 | { | 430 | { |
432 | int i; | 431 | int i; |
433 | lock_cpu_hotplug(); | ||
434 | mutex_lock(&dbs_mutex); | 432 | mutex_lock(&dbs_mutex); |
435 | for_each_online_cpu(i) | 433 | for_each_online_cpu(i) |
436 | dbs_check_cpu(i); | 434 | dbs_check_cpu(i); |
437 | schedule_delayed_work(&dbs_work, | 435 | schedule_delayed_work(&dbs_work, |
438 | usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); | 436 | usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); |
439 | mutex_unlock(&dbs_mutex); | 437 | mutex_unlock(&dbs_mutex); |
440 | unlock_cpu_hotplug(); | ||
441 | } | 438 | } |
442 | 439 | ||
443 | static inline void dbs_timer_init(void) | 440 | static inline void dbs_timer_init(void) |