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);
unsigned int speedstep_get_freqs(unsigned int processor,
unsigned int *low_speed,
unsigned int *high_speed,
void (*set_state) (unsigned int state,
unsigned int notify)
)
void (*set_state) (unsigned int state))
{
unsigned int prev_speed;
unsigned int ret = 0;
......@@ -340,7 +338,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
local_irq_save(flags);
/* switch to low state */
set_state(SPEEDSTEP_LOW, 0);
set_state(SPEEDSTEP_LOW);
*low_speed = speedstep_get_processor_frequency(processor);
if (!*low_speed) {
ret = -EIO;
......@@ -348,7 +346,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
}
/* switch to high state */
set_state(SPEEDSTEP_HIGH, 0);
set_state(SPEEDSTEP_HIGH);
*high_speed = speedstep_get_processor_frequency(processor);
if (!*high_speed) {
ret = -EIO;
......@@ -362,7 +360,7 @@ unsigned int speedstep_get_freqs(unsigned int processor,
/* switch to previous state, if necessary */
if (*high_speed != prev_speed)
set_state(SPEEDSTEP_LOW, 0);
set_state(SPEEDSTEP_LOW);
out:
local_irq_restore(flags);
......
......@@ -44,4 +44,4 @@ extern unsigned int speedstep_get_processor_frequency(unsigned int processor);
extern unsigned int speedstep_get_freqs(unsigned int processor,
unsigned int *low_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