All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][DOCUMENTATION BUGFIX] latency in micro-, not nanoseconds
@ 2003-11-04 16:08 Dominik Brodowski
  2003-11-10 16:32 ` Dave Jones
  0 siblings, 1 reply; 12+ messages in thread
From: Dominik Brodowski @ 2003-11-04 16:08 UTC (permalink / raw)
  To: davej, cpufreq


[-- Attachment #1.1: Type: text/plain, Size: 720 bytes --]

All drivers [davej, can you please verify for powernow-k7?] set the 
transition_latency time in microseconds, even though the core demanded
nanoseconds. Instead of fixing up the drivers, fix up the core...

	Dominik

diff -ruN linux-original/include/linux/cpufreq.h linux/include/linux/cpufreq.h
--- linux-original/include/linux/cpufreq.h	2003-11-04 15:27:38.000000000 +0100
+++ linux/include/linux/cpufreq.h	2003-11-04 16:09:23.547389216 +0100
@@ -57,7 +57,7 @@
 struct cpufreq_cpuinfo {
 	unsigned int		max_freq;
 	unsigned int		min_freq;
-	unsigned int		transition_latency; /* in 10^(-9) s */
+	unsigned int		transition_latency; /* in 10^(-6) s = microseconds */
 };
 
 struct cpufreq_real_policy {

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [PATCH][DOCUMENTATION BUGFIX] latency in micro-, not nanoseconds
@ 2003-11-11 19:57 Pallipadi, Venkatesh
  0 siblings, 0 replies; 12+ messages in thread
From: Pallipadi, Venkatesh @ 2003-11-11 19:57 UTC (permalink / raw)
  To: Dominik Brodowski, Dave Jones; +Cc: Ducrot Bruno, cpufreq



> -----Original Message-----
> From: cpufreq-bounces@www.linux.org.uk 
> [mailto:cpufreq-bounces@www.linux.org.uk] On Behalf Of 
> Dominik Brodowski
> Sent: Tuesday, November 11, 2003 10:54 AM
> To: Dave Jones
> Cc: Ducrot Bruno; cpufreq@www.linux.org.uk
> Subject: Re: [PATCH][DOCUMENTATION BUGFIX] latency in micro-, 
> not nanoseconds
> 
> 
> On Mon, Nov 10, 2003 at 09:16:54PM +0000, Dave Jones wrote:
> > Ok, I can buy that. But it's not being used at all right 
> now, right ?
> 
> It is used in the ondemand governor already. Venkatesh knows of the
> documentation bug and of the powernow-k7 bug, though.


Yes. Current version of ondemand governor is using the transiton 
latency to decide whether this policy can be enabled on this CPU 
or not. As it does frequent sampling (default - 4 times per sec)
which may not work well you have higher transition latencies. 
I am planning to use transition latency to decide on an 
appropriate sampling frequency for that CPU, in next release 
of ondemand governor, so that the governor can support wider 
range of CPUs (although with different sampling frequencies).


Thanks,
-Venkatesh

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

end of thread, other threads:[~2003-11-12 15:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 16:08 [PATCH][DOCUMENTATION BUGFIX] latency in micro-, not nanoseconds Dominik Brodowski
2003-11-10 16:32 ` Dave Jones
2003-11-10 17:15   ` Ducrot Bruno
2003-11-10 17:22     ` Dave Jones
2003-11-10 20:50       ` Dominik Brodowski
2003-11-10 21:16         ` Dave Jones
2003-11-11 18:54           ` Dominik Brodowski
2003-11-11 22:45             ` Dave Jones
2003-11-12 11:01               ` Ducrot Bruno
2003-11-12 14:17                 ` Dave Jones
2003-11-12 15:02                   ` Ducrot Bruno
2003-11-11 19:57 Pallipadi, Venkatesh

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.