public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* cpufreq deprecation
@ 2004-08-17 10:58 Pavel Machek
  2004-08-17 14:39 ` Ray Bryant
  2004-08-17 22:12 ` Andrew Morton
  0 siblings, 2 replies; 5+ messages in thread
From: Pavel Machek @ 2004-08-17 10:58 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Hi!

Today I learned that /proc/cpufreq is going to be removed from
2.6.. I thought that 2.6 means "no interface changes" :-(. Anyway, if
we are going to warn about it, we might want to include newline...

Please apply,
								Pavel

--- clean-mm/drivers/cpufreq/cpufreq_userspace.c	2004-08-17 12:21:43.000000000 +0200
+++ linux-mm/drivers/cpufreq/cpufreq_userspace.c	2004-08-17 12:55:04.000000000 +0200
@@ -174,7 +174,7 @@
 
 	if (!warning_print) {
 		warning_print++;
-		printk(KERN_INFO "Access to /proc/sys/cpu/ is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01");
+		printk(KERN_INFO "Access to /proc/sys/cpu/ is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01\n");
 	}
 
 	if (write) {
@@ -214,7 +214,7 @@
 
 	if (!warning_print) {
 		warning_print++;
-		printk(KERN_INFO "Access to /proc/sys/cpu/ is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01");
+		printk(KERN_INFO "Access to /proc/sys/cpu/ is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01\n");
 	}
 
 	if (oldval && oldlenp) {
--- clean-mm/drivers/cpufreq/proc_intf.c	2004-08-17 12:21:43.000000000 +0200
+++ linux-mm/drivers/cpufreq/proc_intf.c	2004-08-17 12:54:53.000000000 +0200
@@ -115,7 +115,7 @@
 
 	if (!warning_print) {
 		warning_print++;
-		printk(KERN_INFO "Access to /proc/cpufreq is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01");
+		printk(KERN_INFO "Access to /proc/cpufreq is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01\n");
 	}
 
 	p += sprintf(p, "          minimum CPU frequency  -  maximum CPU frequency  -  policy\n");
@@ -190,7 +190,7 @@
 
 	if (!warning_print) {
 		warning_print++;
-		printk(KERN_INFO "Access to /proc/cpufreq is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01");
+		printk(KERN_INFO "Access to /proc/cpufreq is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01\n");
 	}
 	
 	proc_string[count] = '\0';

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

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

* Re: cpufreq deprecation
  2004-08-17 10:58 cpufreq deprecation Pavel Machek
@ 2004-08-17 14:39 ` Ray Bryant
  2004-08-17 16:45   ` Dave Jones
  2004-08-17 22:12 ` Andrew Morton
  1 sibling, 1 reply; 5+ messages in thread
From: Ray Bryant @ 2004-08-17 14:39 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Kernel Mailing List

Pavel,

A scan of the lkml archives on theaimsgroup for cpufreq shows only this 
message about deprecation.  Where was this discussed?  Is there an alternative 
for this information being proposed?

Thanks,

Ray

Pavel Machek wrote:
> Hi!
> 
> Today I learned that /proc/cpufreq is going to be removed from
> 2.6.. I thought that 2.6 means "no interface changes" :-(. Anyway, if
> we are going to warn about it, we might want to include newline...
> 
> Please apply,
> 								Pavel


-- 
Best Regards,
Ray
-----------------------------------------------
                   Ray Bryant
512-453-9679 (work)         512-507-7807 (cell)
raybry@sgi.com             raybry@austin.rr.com
The box said: "Requires Windows 98 or better",
            so I installed Linux.
-----------------------------------------------


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

* Re: cpufreq deprecation
  2004-08-17 14:39 ` Ray Bryant
@ 2004-08-17 16:45   ` Dave Jones
  2004-08-17 19:54     ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Jones @ 2004-08-17 16:45 UTC (permalink / raw)
  To: Ray Bryant; +Cc: Pavel Machek, Kernel Mailing List

On Tue, Aug 17, 2004 at 09:39:12AM -0500, Ray Bryant wrote:
 > Pavel,
 > 
 > A scan of the lkml archives on theaimsgroup for cpufreq shows only this 
 > message about deprecation.  Where was this discussed?

Probably cpufreq list around the time cpufreq was first merged to mainline 2.6.

I never wanted to really see the proc stuff hit 2.6 at all, but
someone (maybe Dominik) suggested that as there were tools using it,
(a multitude of cpu scaling daemons appeared), we should drag it into 2.6
too, at least until the daemons caught up with the preferred interface.

It's been marked as 'deprecated' since day one of its inclusion.
All the userspace tools that are actually decent enough to use
are aware of the 2.6 interface, and will use those rather than the
/proc interface.

 > Is there an alternative for this information being proposed?

sysfs.

		Dave


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

* Re: cpufreq deprecation
  2004-08-17 16:45   ` Dave Jones
@ 2004-08-17 19:54     ` Pavel Machek
  0 siblings, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2004-08-17 19:54 UTC (permalink / raw)
  To: Dave Jones, Ray Bryant, Kernel Mailing List

Hi!

>  > A scan of the lkml archives on theaimsgroup for cpufreq shows only this 
>  > message about deprecation.  Where was this discussed?
> 
> Probably cpufreq list around the time cpufreq was first merged to mainline 2.6.
> 
> I never wanted to really see the proc stuff hit 2.6 at all, but
> someone (maybe Dominik) suggested that as there were tools using it,
> (a multitude of cpu scaling daemons appeared), we should drag it into 2.6
> too, at least until the daemons caught up with the preferred
> interface.

I do not think changing interface in half of stable series is good
idea, but yes, it was market deprecated since day one. Keeping at
least read-only /proc/cpufreq would be nice. Or perhaps merging that
info into /proc/cpuinfo?
								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

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

* Re: cpufreq deprecation
  2004-08-17 10:58 cpufreq deprecation Pavel Machek
  2004-08-17 14:39 ` Ray Bryant
@ 2004-08-17 22:12 ` Andrew Morton
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2004-08-17 22:12 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel

Pavel Machek <pavel@ucw.cz> wrote:
>
> Today I learned that /proc/cpufreq is going to be removed 
> from 2.6.. I thought that 2.6 means "no interface changes" :-(.

Well, we'll see.  One very good reason for adding such a runtime warning is
to give people six months to convince the developers that it's a bad idea.

> Anyway, if
> we are going to warn about it, we might want to include newline...

Sure.

> -		printk(KERN_INFO "Access to /proc/sys/cpu/ is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01");
> +		printk(KERN_INFO "Access to /proc/sys/cpu/ is deprecated and will be removed from (new) 2.6. kernels soon after 2005-01-01\n");

hrmpf.  The original author is hereby impaled upon a metaphorical 80-col
xterm.  Shall fix that too.


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

end of thread, other threads:[~2004-08-17 22:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-17 10:58 cpufreq deprecation Pavel Machek
2004-08-17 14:39 ` Ray Bryant
2004-08-17 16:45   ` Dave Jones
2004-08-17 19:54     ` Pavel Machek
2004-08-17 22:12 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox