diff options
Diffstat (limited to 'drivers/cpufreq/speedstep-smi.c')
-rw-r--r-- | drivers/cpufreq/speedstep-smi.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/cpufreq/speedstep-smi.c b/drivers/cpufreq/speedstep-smi.c index 0f5326d6f79f..998c17b42200 100644 --- a/drivers/cpufreq/speedstep-smi.c +++ b/drivers/cpufreq/speedstep-smi.c | |||
@@ -141,38 +141,6 @@ static int speedstep_smi_get_freqs(unsigned int *low, unsigned int *high) | |||
141 | } | 141 | } |
142 | 142 | ||
143 | /** | 143 | /** |
144 | * speedstep_get_state - set the SpeedStep state | ||
145 | * @state: processor frequency state (SPEEDSTEP_LOW or SPEEDSTEP_HIGH) | ||
146 | * | ||
147 | */ | ||
148 | static int speedstep_get_state(void) | ||
149 | { | ||
150 | u32 function = GET_SPEEDSTEP_STATE; | ||
151 | u32 result, state, edi, command, dummy; | ||
152 | |||
153 | command = (smi_sig & 0xffffff00) | (smi_cmd & 0xff); | ||
154 | |||
155 | pr_debug("trying to determine current setting with command %x " | ||
156 | "at port %x\n", command, smi_port); | ||
157 | |||
158 | __asm__ __volatile__( | ||
159 | "push %%ebp\n" | ||
160 | "out %%al, (%%dx)\n" | ||
161 | "pop %%ebp\n" | ||
162 | : "=a" (result), | ||
163 | "=b" (state), "=D" (edi), | ||
164 | "=c" (dummy), "=d" (dummy), "=S" (dummy) | ||
165 | : "a" (command), "b" (function), "c" (0), | ||
166 | "d" (smi_port), "S" (0), "D" (0) | ||
167 | ); | ||
168 | |||
169 | pr_debug("state is %x, result is %x\n", state, result); | ||
170 | |||
171 | return state & 1; | ||
172 | } | ||
173 | |||
174 | |||
175 | /** | ||
176 | * speedstep_set_state - set the SpeedStep state | 144 | * speedstep_set_state - set the SpeedStep state |
177 | * @state: new processor frequency state (SPEEDSTEP_LOW or SPEEDSTEP_HIGH) | 145 | * @state: new processor frequency state (SPEEDSTEP_LOW or SPEEDSTEP_HIGH) |
178 | * | 146 | * |