diff options
author | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
commit | c4366889dda8110247be59ca41fddb82951a8c26 (patch) | |
tree | 705c1a996bed8fd48ce94ff33ec9fd00f9b94875 /drivers/cpufreq/cpufreq_conservative.c | |
parent | db2fb9db5735cc532fd4fc55e94b9a3c3750378e (diff) | |
parent | e1036502e5263851259d147771226161e5ccc85a (diff) |
Merge ../linus
Conflicts:
drivers/cpufreq/cpufreq.c
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 29905b4bf8c8..eef0270c6f3d 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -61,7 +61,7 @@ static unsigned int def_sampling_rate; | |||
61 | #define MAX_SAMPLING_DOWN_FACTOR (10) | 61 | #define MAX_SAMPLING_DOWN_FACTOR (10) |
62 | #define TRANSITION_LATENCY_LIMIT (10 * 1000) | 62 | #define TRANSITION_LATENCY_LIMIT (10 * 1000) |
63 | 63 | ||
64 | static void do_dbs_timer(void *data); | 64 | static void do_dbs_timer(struct work_struct *work); |
65 | 65 | ||
66 | struct cpu_dbs_info_s { | 66 | struct cpu_dbs_info_s { |
67 | struct cpufreq_policy *cur_policy; | 67 | struct cpufreq_policy *cur_policy; |
@@ -84,7 +84,7 @@ static unsigned int dbs_enable; /* number of CPUs using this policy */ | |||
84 | * is recursive for the same process. -Venki | 84 | * is recursive for the same process. -Venki |
85 | */ | 85 | */ |
86 | static DEFINE_MUTEX (dbs_mutex); | 86 | static DEFINE_MUTEX (dbs_mutex); |
87 | static DECLARE_WORK (dbs_work, do_dbs_timer, NULL); | 87 | static DECLARE_DELAYED_WORK(dbs_work, do_dbs_timer); |
88 | 88 | ||
89 | struct dbs_tuners { | 89 | struct dbs_tuners { |
90 | unsigned int sampling_rate; | 90 | unsigned int sampling_rate; |
@@ -427,7 +427,7 @@ static void dbs_check_cpu(int cpu) | |||
427 | } | 427 | } |
428 | } | 428 | } |
429 | 429 | ||
430 | static void do_dbs_timer(void *data) | 430 | static void do_dbs_timer(struct work_struct *work) |
431 | { | 431 | { |
432 | int i; | 432 | int i; |
433 | lock_cpu_hotplug(); | 433 | lock_cpu_hotplug(); |
@@ -442,7 +442,6 @@ static void do_dbs_timer(void *data) | |||
442 | 442 | ||
443 | static inline void dbs_timer_init(void) | 443 | static inline void dbs_timer_init(void) |
444 | { | 444 | { |
445 | INIT_WORK(&dbs_work, do_dbs_timer, NULL); | ||
446 | schedule_delayed_work(&dbs_work, | 445 | schedule_delayed_work(&dbs_work, |
447 | usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); | 446 | usecs_to_jiffies(dbs_tuners_ins.sampling_rate)); |
448 | return; | 447 | return; |