Skip to contentSkip to conversation

Remove notify in speedstep_set_state [1/2]

PATCH In review Bruno Ducrot 2 participants 5 messages Jun 11, 2004

lore
Share & tools
lore
#0 lore raw

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

Remove 'notify' in speedstep_set_state for speedstep-lib

 speedstep-lib.c |   10 ++++------
 speedstep-lib.h |    2 +-
 2 files changed, 5 insertions(+), 7 deletions(-)
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c +4 -6
@@ -321,9 +321,7 @@ EXPORT_SYMBOL_GPL(speedstep_detect_proce
 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(unsigne
 	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(unsigne
 	}
 
 	/* 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(unsigne
 
 	/* 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);
arch/i386/kernel/cpu/cpufreq/speedstep-lib.h +1 -1
@@ -44,4 +44,4 @@ extern unsigned int speedstep_get_proces
 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));
Signature · 4 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#1 lore raw
Quoted 3 lines · Bruno Ducrot

Remove 'notify' in speedstep_set_state for speedstep-lib

How about [3/2] Fix speedstep-ich 8-)

CC arch/i386/kernel/cpu/cpufreq/speedstep-ich.o
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c: In function `speedstep_cpu_init':
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c:291: warning: passing arg 4 of `speedstep_get_freqs' from incompatible pointer type

The p4-clockmod change also broke the compile here, but I'm fixing that up (just looks like a missing #include)

Dave

#2 lore raw
Quoted 6 lines · Dave Jones
Quoted 3 lines · Bruno Ducrot

Remove 'notify' in speedstep_set_state for speedstep-lib

How about [3/2] Fix speedstep-ich 8-)

It's expected to be done by the latest speedstep_patch.2.6.7-rc3_SMT.diff from Christian Hoelbling ;)

Quoted 2 lines

The p4-clockmod change also broke the compile here, but I'm fixing that up (just looks like a missing #include)

Signature · 4 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.
#3 lore raw
Quoted 10 lines · Bruno Ducrot
Quoted 6 lines · Dave Jones
Quoted 3 lines · Bruno Ducrot

Remove 'notify' in speedstep_set_state for speedstep-lib

How about [3/2] Fix speedstep-ich 8-)

It's expected to be done by the latest speedstep_patch.2.6.7-rc3_SMT.diff from Christian Hoelbling ;)

Ah, I lost track of what happened with that one. Dominik mentioned you found some bug in it, but I'm not sure I saw any follow-up patch. I'll go re-read the thread after lunch and see if I can pick it up.

Dave

#4 lore raw
Quoted 9 lines · Dave Jones
Quoted 8 lines · Bruno Ducrot
Quoted 6 lines · Dave Jones
Quoted 3 lines · Bruno Ducrot

Remove 'notify' in speedstep_set_state for speedstep-lib

How about [3/2] Fix speedstep-ich 8-)

Quoted 7 lines
Quoted 2 lines

It's expected to be done by the latest speedstep_patch.2.6.7-rc3_SMT.diff from Christian Hoelbling ;)

Ah, I lost track of what happened with that one. Dominik mentioned you found some bug in it, but I'm not sure I saw any follow-up patch. I'll go re-read the thread after lunch and see if I can pick it up.

You are right. It was not send as a follow-up patch, but was sent with 'subject [PATCH] 2.6.5 speedstep on P4Ms', though it's again 2.6.7-rc3 I believe.

Cheers,

Signature · 4 lines
Bruno Ducrot

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.