All of lore.kernel.org
 help / color / mirror / Atom feed
* speedstep-smi detection broken.
@ 2006-10-17  5:55 Dave Jones
  2006-10-17 14:00 ` Hiroshi Miura
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Jones @ 2006-10-17  5:55 UTC (permalink / raw)
  To: miura; +Cc: cpufreq

If someone inserts speedstep-smi on a mobile P4,
it prevents other cpufreq modules from loading until it
is unloaded.

Opinions on this patch ?
(I'm tempted to just remove the printk too).

	Dave

--- local-git/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c~	2006-10-17 01:53:29.000000000 -0400
+++ local-git/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c	2006-10-17 01:54:02.000000000 -0400
@@ -362,7 +362,7 @@ static int __init speedstep_init(void)
 		break;
 	case SPEEDSTEP_PROCESSOR_P4M:
 		printk(KERN_INFO "speedstep-smi: you're trying to use this cpufreq driver on a Pentium 4-based CPU. Most likely it will not work.\n");
-		break;
+		return -ENODEV;
 	default:
 		speedstep_processor = 0;
 	}


-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: speedstep-smi detection broken.
  2006-10-17  5:55 speedstep-smi detection broken Dave Jones
@ 2006-10-17 14:00 ` Hiroshi Miura
  2006-10-17 18:07   ` Dave Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Hiroshi Miura @ 2006-10-17 14:00 UTC (permalink / raw)
  To: Dave Jones; +Cc: cpufreq

I prefer removing all of P4M case  block  if you remove the printk too.
This means simply not to support P4M with this driver and
return -ENODEV.
If user turn on debug flag, they may see
	dprintk ("No supported Intel CPU detected.\n");
as same as other CPUs.

Hiroshi

--- linux-2.6.18/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c~	2006-09-20
12:42:06.000000000 +0900
+++ linux-2.6.18/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c	2006-10-17
22:59:50.553975632 +0900
@@ -360,9 +360,6 @@
 	case SPEEDSTEP_PROCESSOR_PIII_C:
 	case SPEEDSTEP_PROCESSOR_PIII_C_EARLY:
 		break;
-	case SPEEDSTEP_PROCESSOR_P4M:
-		printk(KERN_INFO "speedstep-smi: you're trying to use this cpufreq
driver on a Pentium 4-based CPU. Most likely it will not work.\n");
-		break;
 	default:
 		speedstep_processor = 0;
 	}

2006/10/17, Dave Jones <davej@redhat.com>:
> If someone inserts speedstep-smi on a mobile P4,
> it prevents other cpufreq modules from loading until it
> is unloaded.
>
> Opinions on this patch ?
> (I'm tempted to just remove the printk too).
>
>         Dave
>
> --- local-git/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c~     2006-10-17 01:53:29.000000000 -0400
> +++ local-git/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c      2006-10-17 01:54:02.000000000 -0400
> @@ -362,7 +362,7 @@ static int __init speedstep_init(void)
>                 break;
>         case SPEEDSTEP_PROCESSOR_P4M:
>                 printk(KERN_INFO "speedstep-smi: you're trying to use this cpufreq driver on a Pentium 4-based CPU. Most likely it will not work.\n");
> -               break;
> +               return -ENODEV;
>         default:
>                 speedstep_processor = 0;
>         }
>
>
> --
> http://www.codemonkey.org.uk
>


-- 
HIroshi Miura

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: speedstep-smi detection broken.
  2006-10-17 14:00 ` Hiroshi Miura
@ 2006-10-17 18:07   ` Dave Jones
  2006-10-18  3:59     ` Hiroshi Miura
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Jones @ 2006-10-17 18:07 UTC (permalink / raw)
  To: Hiroshi Miura; +Cc: cpufreq

On Tue, Oct 17, 2006 at 11:00:42PM +0900, Hiroshi Miura wrote:
 > I prefer removing all of P4M case  block  if you remove the printk too.
 > This means simply not to support P4M with this driver and
 > return -ENODEV.
 > If user turn on debug flag, they may see
 > 	dprintk ("No supported Intel CPU detected.\n");
 > as same as other CPUs.

Yes, even better. I'll apply this.
Want me to fake a Signed-off-by: from you, as you forgot to add one? :)

	Dave 

-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: speedstep-smi detection broken.
  2006-10-17 18:07   ` Dave Jones
@ 2006-10-18  3:59     ` Hiroshi Miura
  0 siblings, 0 replies; 4+ messages in thread
From: Hiroshi Miura @ 2006-10-18  3:59 UTC (permalink / raw)
  To: Dave Jones; +Cc: cpufreq

2006/10/18, Dave Jones <davej@redhat.com>:
> On Tue, Oct 17, 2006 at 11:00:42PM +0900, Hiroshi Miura wrote:
>  > I prefer removing all of P4M case  block  if you remove the printk too.
>  > This means simply not to support P4M with this driver and
>  > return -ENODEV.
>  > If user turn on debug flag, they may see
>  >      dprintk ("No supported Intel CPU detected.\n");
>  > as same as other CPUs.
>
> Yes, even better. I'll apply this.
> Want me to fake a Signed-off-by: from you, as you forgot to add one? :)

Exactly I forgot, sorry.

Hiroshi

Signed-off-by: Hiroshi Miura <miura@da-cha.org>
--- linux-2.6.18/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c~  2006-09-20
12:42:06.000000000 +0900
+++ linux-2.6.18/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c   2006-10-17
22:59:50.553975632 +0900
@@ -360,9 +360,6 @@
       case SPEEDSTEP_PROCESSOR_PIII_C:
       case SPEEDSTEP_PROCESSOR_PIII_C_EARLY:
               break;
-       case SPEEDSTEP_PROCESSOR_P4M:
-               printk(KERN_INFO "speedstep-smi: you're trying to use
this cpufreq driver on a Pentium 4-based CPU. Most likely it will not
work.\n");
-               break;
       default:
               speedstep_processor = 0;
       }

-- 
HIroshi Miura

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-18  3:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17  5:55 speedstep-smi detection broken Dave Jones
2006-10-17 14:00 ` Hiroshi Miura
2006-10-17 18:07   ` Dave Jones
2006-10-18  3:59     ` Hiroshi Miura

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.