diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-11 11:49:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-11 11:49:34 -0400 |
commit | 098ef215b1e87cff51f983bae4e4e1358b932ec9 (patch) | |
tree | 2f906ac44e65ce463bbdfa7291773c012663b2c8 /drivers/cpufreq/cpufreq_conservative.c | |
parent | b922df7383749a1c0b7ea64c50fa839263d3816b (diff) | |
parent | 4f6e6b9f97b0ce98a8d1da65adbaf743bd0486a9 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
[CPUFREQ] Fix BUG: using smp_processor_id() in preemptible code
[CPUFREQ] Don't export governors for default governor
[CPUFREQ][6/6] cpufreq: Add idle microaccounting in ondemand governor
[CPUFREQ][5/6] cpufreq: Changes to get_cpu_idle_time_us(), used by ondemand governor
[CPUFREQ][4/6] cpufreq_ondemand: Parameterize down differential
[CPUFREQ][3/6] cpufreq: get_cpu_idle_time() changes in ondemand for idle-microaccounting
[CPUFREQ][2/6] cpufreq: Change load calculation in ondemand for software coordination
[CPUFREQ][1/6] cpufreq: Add cpu number parameter to __cpufreq_driver_getavg()
[CPUFREQ] use deferrable delayed work init in conservative governor
[CPUFREQ] drivers/cpufreq/cpufreq.c: Adjust error handling code involving cpufreq_cpu_put
[CPUFREQ] add error handling for cpufreq_register_governor() error
[CPUFREQ] acpi-cpufreq: add error handling for cpufreq_register_driver() error
[CPUFREQ] Coding style fixes to arch/x86/kernel/cpu/cpufreq/powernow-k6.c
[CPUFREQ] Coding style fixes to arch/x86/kernel/cpu/cpufreq/elanfreq.c
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 5 |
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 | ||
461 | static inline void dbs_timer_init(void) | 461 | static 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 | ||
580 | static | ||
581 | #endif | ||
578 | struct cpufreq_governor cpufreq_gov_conservative = { | 582 | struct 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 | }; |
584 | EXPORT_SYMBOL(cpufreq_gov_conservative); | ||
585 | 588 | ||
586 | static int __init cpufreq_gov_dbs_init(void) | 589 | static int __init cpufreq_gov_dbs_init(void) |
587 | { | 590 | { |