aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_conservative.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r--drivers/cpufreq/cpufreq_conservative.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index ac0bbf2d234f..e2657837d954 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -460,6 +460,7 @@ static void do_dbs_timer(struct work_struct *work)
460 460
461static inline void dbs_timer_init(void) 461static inline void dbs_timer_init(void)
462{ 462{
463 init_timer_deferrable(&dbs_work.timer);
463 schedule_delayed_work(&dbs_work, 464 schedule_delayed_work(&dbs_work,
464 usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); 465 usecs_to_jiffies(dbs_tuners_ins.sampling_rate));
465 return; 466 return;
@@ -575,13 +576,15 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
575 return 0; 576 return 0;
576} 577}
577 578
579#ifndef CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
580static
581#endif
578struct cpufreq_governor cpufreq_gov_conservative = { 582struct cpufreq_governor cpufreq_gov_conservative = {
579 .name = "conservative", 583 .name = "conservative",
580 .governor = cpufreq_governor_dbs, 584 .governor = cpufreq_governor_dbs,
581 .max_transition_latency = TRANSITION_LATENCY_LIMIT, 585 .max_transition_latency = TRANSITION_LATENCY_LIMIT,
582 .owner = THIS_MODULE, 586 .owner = THIS_MODULE,
583}; 587};
584EXPORT_SYMBOL(cpufreq_gov_conservative);
585 588
586static int __init cpufreq_gov_dbs_init(void) 589static int __init cpufreq_gov_dbs_init(void)
587{ 590{