diff options
Diffstat (limited to 'drivers/cpufreq/p4-clockmod.c')
-rw-r--r-- | drivers/cpufreq/p4-clockmod.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c index 3c23053afdfd..3d1cba9fd5f9 100644 --- a/drivers/cpufreq/p4-clockmod.c +++ b/drivers/cpufreq/p4-clockmod.c | |||
@@ -107,15 +107,8 @@ static struct cpufreq_frequency_table p4clockmod_table[] = { | |||
107 | 107 | ||
108 | static int cpufreq_p4_target(struct cpufreq_policy *policy, unsigned int index) | 108 | static int cpufreq_p4_target(struct cpufreq_policy *policy, unsigned int index) |
109 | { | 109 | { |
110 | struct cpufreq_freqs freqs; | ||
111 | int i; | 110 | int i; |
112 | 111 | ||
113 | freqs.old = cpufreq_p4_get(policy->cpu); | ||
114 | freqs.new = stock_freq * p4clockmod_table[index].driver_data / 8; | ||
115 | |||
116 | /* notifiers */ | ||
117 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_PRECHANGE); | ||
118 | |||
119 | /* run on each logical CPU, | 112 | /* run on each logical CPU, |
120 | * see section 13.15.3 of IA32 Intel Architecture Software | 113 | * see section 13.15.3 of IA32 Intel Architecture Software |
121 | * Developer's Manual, Volume 3 | 114 | * Developer's Manual, Volume 3 |
@@ -123,9 +116,6 @@ static int cpufreq_p4_target(struct cpufreq_policy *policy, unsigned int index) | |||
123 | for_each_cpu(i, policy->cpus) | 116 | for_each_cpu(i, policy->cpus) |
124 | cpufreq_p4_setdc(i, p4clockmod_table[index].driver_data); | 117 | cpufreq_p4_setdc(i, p4clockmod_table[index].driver_data); |
125 | 118 | ||
126 | /* notifiers */ | ||
127 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE); | ||
128 | |||
129 | return 0; | 119 | return 0; |
130 | } | 120 | } |
131 | 121 | ||