Commit e4b509c4 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Remove notify in speedstep_set_state [1/2]

Remove 'notify' in speedstep_set_state for speedstep-lib
Signed-off-by: default avatarBruno Ducrot <ducrot@poupinou.org>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 757a4a23
...@@ -321,9 +321,7 @@ EXPORT_SYMBOL_GPL(speedstep_detect_processor); ...@@ -321,9 +321,7 @@ EXPORT_SYMBOL_GPL(speedstep_detect_processor);
unsigned int speedstep_get_freqs(unsigned int processor, unsigned int speedstep_get_freqs(unsigned int processor,
unsigned int *low_speed, unsigned int *low_speed,
unsigned int *high_speed, unsigned int *high_speed,
void (*set_state) (unsigned int state, void (*set_state) (unsigned int state))
unsigned int notify)
)
{ {
unsigned int prev_speed; unsigned int prev_speed;
unsigned int ret = 0; unsigned int ret = 0;
...@@ -340,7 +338,7 @@ unsigned int speedstep_get_freqs(unsigned int processor, ...@@ -340,7 +338,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
local_irq_save(flags); local_irq_save(flags);
/* switch to low state */ /* switch to low state */
set_state(SPEEDSTEP_LOW, 0); set_state(SPEEDSTEP_LOW);
*low_speed = speedstep_get_processor_frequency(processor); *low_speed = speedstep_get_processor_frequency(processor);
if (!*low_speed) { if (!*low_speed) {
ret = -EIO; ret = -EIO;
...@@ -348,7 +346,7 @@ unsigned int speedstep_get_freqs(unsigned int processor, ...@@ -348,7 +346,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
} }
/* switch to high state */ /* switch to high state */
set_state(SPEEDSTEP_HIGH, 0); set_state(SPEEDSTEP_HIGH);
*high_speed = speedstep_get_processor_frequency(processor); *high_speed = speedstep_get_processor_frequency(processor);
if (!*high_speed) { if (!*high_speed) {
ret = -EIO; ret = -EIO;
...@@ -362,7 +360,7 @@ unsigned int speedstep_get_freqs(unsigned int processor, ...@@ -362,7 +360,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
/* switch to previous state, if necessary */ /* switch to previous state, if necessary */
if (*high_speed != prev_speed) if (*high_speed != prev_speed)
set_state(SPEEDSTEP_LOW, 0); set_state(SPEEDSTEP_LOW);
out: out:
local_irq_restore(flags); local_irq_restore(flags);
......
...@@ -44,4 +44,4 @@ extern unsigned int speedstep_get_processor_frequency(unsigned int processor); ...@@ -44,4 +44,4 @@ extern unsigned int speedstep_get_processor_frequency(unsigned int processor);
extern unsigned int speedstep_get_freqs(unsigned int processor, extern unsigned int speedstep_get_freqs(unsigned int processor,
unsigned int *low_speed, unsigned int *low_speed,
unsigned int *high_speed, unsigned int *high_speed,
void (*set_state) (unsigned int state, unsigned int notify)); void (*set_state) (unsigned int state));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment