public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* X86_PM_TIMER: /proc/cpuinfo doesn't get updated
@ 2004-03-16 18:22 Luca
       [not found] ` <20040316182257.GA2734-sTXFmx6KbOnUXq0IF5SVAZ4oGUkBHcCu@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Luca @ 2004-03-16 18:22 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,
I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
updated when I switch frequency (via sysfs, using powernow-k7). The is
issue seems cosmetic only, CPU frequency changes (watching
temperature/battery life).

Without X86_PM_TIMER I see the actual speed in /proc/cpuinfo. It seems
that cpu_khz isn't updated on frequency change, but I don't know how
this can affect the rest of the system...

Luca
-- 
Home: http://kronoz.cjb.net
Tentare e` il primo passo verso il fallimento.
Homer J. Simpson


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: X86_PM_TIMER: /proc/cpuinfo doesn't get updated
       [not found] ` <20040316182257.GA2734-sTXFmx6KbOnUXq0IF5SVAZ4oGUkBHcCu@public.gmane.org>
@ 2004-03-16 19:48   ` Daniele Venzano
  2004-03-16 21:42     ` [ACPI] " Karol Kozimor
  0 siblings, 1 reply; 13+ messages in thread
From: Daniele Venzano @ 2004-03-16 19:48 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Tue, Mar 16, 2004 at 07:22:57PM +0100, Luca wrote:
> Hi,
> I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> updated when I switch frequency (via sysfs, using powernow-k7). The is
> issue seems cosmetic only, CPU frequency changes (watching
> temperature/battery life).

I can confirm, I'm seeing the same behavior. Please note that the
bogomips count gets updated, it's only the frequency that doesn't
change.

Thanks.

-- 
-----------------------------
Daniele Venzano
Web: http://teg.homeunix.org



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: [ACPI] X86_PM_TIMER: /proc/cpuinfo doesn't get updated
  2004-03-16 19:48   ` Daniele Venzano
@ 2004-03-16 21:42     ` Karol Kozimor
  2004-03-16 23:19       ` Dmitry Torokhov
  2004-03-16 23:28       ` john stultz
  0 siblings, 2 replies; 13+ messages in thread
From: Karol Kozimor @ 2004-03-16 21:42 UTC (permalink / raw)
  To: johnstul, dtor_core; +Cc: acpi-devel, linux-kernel

Thus wrote Daniele Venzano:
> > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > issue seems cosmetic only, CPU frequency changes (watching
> > temperature/battery life).
> I can confirm, I'm seeing the same behavior. Please note that the
> bogomips count gets updated, it's only the frequency that doesn't
> change.

Same here with a P4-M, follow-up to John and Dmitry.
Best regards,

-- 
Karol 'sziwan' Kozimor
sziwan@hell.org.pl

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

* Re: [ACPI] X86_PM_TIMER: /proc/cpuinfo doesn't get updated
  2004-03-16 21:42     ` [ACPI] " Karol Kozimor
@ 2004-03-16 23:19       ` Dmitry Torokhov
       [not found]         ` <200403161819.55351.dtor_core-yWtbtysYrB+LZ21kGMrzwg@public.gmane.org>
  2004-03-16 23:28       ` john stultz
  1 sibling, 1 reply; 13+ messages in thread
From: Dmitry Torokhov @ 2004-03-16 23:19 UTC (permalink / raw)
  To: acpi-devel; +Cc: Karol Kozimor, johnstul, linux-kernel

On Tuesday 16 March 2004 04:42 pm, Karol Kozimor wrote:
> Thus wrote Daniele Venzano:
> > > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > > issue seems cosmetic only, CPU frequency changes (watching
> > > temperature/battery life).
> > I can confirm, I'm seeing the same behavior. Please note that the
> > bogomips count gets updated, it's only the frequency that doesn't
> > change.
> 
> Same here with a P4-M, follow-up to John and Dmitry.
> Best regards,
> 

PM timer does not install CPUFREQ handler which would scale cpu_khz to
give proper display. I might cook up something later tonight.

-- 
Dmitry

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

* Re: [ACPI] X86_PM_TIMER: /proc/cpuinfo doesn't get updated
  2004-03-16 21:42     ` [ACPI] " Karol Kozimor
  2004-03-16 23:19       ` Dmitry Torokhov
@ 2004-03-16 23:28       ` john stultz
       [not found]         ` <1079479694.5408.47.camel-ZXXC8hg/5Ur1HCVp7OyP2DJtLkR7yuzc@public.gmane.org>
  1 sibling, 1 reply; 13+ messages in thread
From: john stultz @ 2004-03-16 23:28 UTC (permalink / raw)
  To: Karol Kozimor, Dominik Brodowski; +Cc: dtor_core, acpi-devel, lkml

On Tue, 2004-03-16 at 13:42, Karol Kozimor wrote:
> Thus wrote Daniele Venzano:
> > > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > > issue seems cosmetic only, CPU frequency changes (watching
> > > temperature/battery life).
> > I can confirm, I'm seeing the same behavior. Please note that the
> > bogomips count gets updated, it's only the frequency that doesn't
> > change.
> 
> Same here with a P4-M, follow-up to John and Dmitry.

Hmm. This is untested, but I think this should do the trick.

Dominik: Is there any reason I'm not seeing why cpu_khz should only be
updated when using the TSC?

thanks
-john

===== arch/i386/kernel/timers/timer_tsc.c 1.36 vs edited =====
--- 1.36/arch/i386/kernel/timers/timer_tsc.c	Tue Feb  3 21:35:49 2004
+++ edited/arch/i386/kernel/timers/timer_tsc.c	Tue Mar 16 15:23:49 2004
@@ -360,8 +360,8 @@
 		if (variable_tsc)
 			cpu_data[freq->cpu].loops_per_jiffy = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new);
 #ifndef CONFIG_SMP
+		cpu_khz = cpufreq_scale(cpu_khz_ref, ref_freq, freq->new);
 		if (use_tsc) {
-			cpu_khz = cpufreq_scale(cpu_khz_ref, ref_freq, freq->new);
 			if (variable_tsc) {
 				fast_gettimeoffset_quotient = cpufreq_scale(fast_gettimeoffset_ref, freq->new, ref_freq);
 				set_cyc2ns_scale(cpu_khz/1000);

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

* Re: X86_PM_TIMER: /proc/cpuinfo doesn't get updated
       [not found]         ` <200403161819.55351.dtor_core-yWtbtysYrB+LZ21kGMrzwg@public.gmane.org>
@ 2004-03-16 23:32           ` john stultz
  2004-03-17  0:30             ` [ACPI] " Dmitry Torokhov
  0 siblings, 1 reply; 13+ messages in thread
From: john stultz @ 2004-03-16 23:32 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Karol Kozimor, lkml

On Tue, 2004-03-16 at 15:19, Dmitry Torokhov wrote:
> On Tuesday 16 March 2004 04:42 pm, Karol Kozimor wrote:
> > Thus wrote Daniele Venzano:
> > > > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > > > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > > > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > > > issue seems cosmetic only, CPU frequency changes (watching
> > > > temperature/battery life).
> > > I can confirm, I'm seeing the same behavior. Please note that the
> > > bogomips count gets updated, it's only the frequency that doesn't
> > > change.
> > 
> > Same here with a P4-M, follow-up to John and Dmitry.
> > Best regards,
> > 
> 
> PM timer does not install CPUFREQ handler which would scale cpu_khz to
> give proper display. I might cook up something later tonight.

Actually, the cpufreq handler is installed by an initcall regardless of
which time-source is used. However as the handler changes a few TSC
specific variables, it exits in timer_tsc.c.

I think the fix I just mailed should do the trick. Let me know if it
doesn't.

thanks
-john





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: X86_PM_TIMER: /proc/cpuinfo doesn't get updated
       [not found]         ` <1079479694.5408.47.camel-ZXXC8hg/5Ur1HCVp7OyP2DJtLkR7yuzc@public.gmane.org>
@ 2004-03-16 23:33           ` Dominik Brodowski
       [not found]             ` <20040316233334.GA9001-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org>
  2004-03-17  0:13           ` X86_PM_TIMER: /proc/cpuinfo doesn't get updated Karol Kozimor
  1 sibling, 1 reply; 13+ messages in thread
From: Dominik Brodowski @ 2004-03-16 23:33 UTC (permalink / raw)
  To: john stultz
  Cc: Karol Kozimor, dtor_core-yWtbtysYrB+LZ21kGMrzwg,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, lkml

[-- Attachment #1: Type: text/plain, Size: 987 bytes --]

On Tue, Mar 16, 2004 at 03:28:15PM -0800, john stultz wrote:
> On Tue, 2004-03-16 at 13:42, Karol Kozimor wrote:
> > Thus wrote Daniele Venzano:
> > > > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > > > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > > > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > > > issue seems cosmetic only, CPU frequency changes (watching
> > > > temperature/battery life).
> > > I can confirm, I'm seeing the same behavior. Please note that the
> > > bogomips count gets updated, it's only the frequency that doesn't
> > > change.
> > 
> > Same here with a P4-M, follow-up to John and Dmitry.
> 
> Hmm. This is untested, but I think this should do the trick.
> 
> Dominik: Is there any reason I'm not seeing why cpu_khz should only be
> updated when using the TSC?

Is cpu_khz always correct (or, at least, nonzero) when we're reaching this 
code path?

	Dominik

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

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

* Re: X86_PM_TIMER: /proc/cpuinfo doesn't get updated
       [not found]         ` <1079479694.5408.47.camel-ZXXC8hg/5Ur1HCVp7OyP2DJtLkR7yuzc@public.gmane.org>
  2004-03-16 23:33           ` Dominik Brodowski
@ 2004-03-17  0:13           ` Karol Kozimor
  2004-03-17  0:33             ` [ACPI] " Dmitry Torokhov
  1 sibling, 1 reply; 13+ messages in thread
From: Karol Kozimor @ 2004-03-17  0:13 UTC (permalink / raw)
  To: john stultz
  Cc: Dominik Brodowski, dtor_core-yWtbtysYrB+LZ21kGMrzwg,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, lkml

Thus wrote john stultz:
> Hmm. This is untested, but I think this should do the trick.

Hmm... without the patch, neither cpu MHz nor bogomips are updated, with
the patch cpu MHz value seems correct (both using acpi.ko and
speedstep-ich.ko, but the bogomips is still at its initial value.
Best regards,

-- 
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: [ACPI] X86_PM_TIMER: /proc/cpuinfo doesn't get updated
  2004-03-16 23:32           ` john stultz
@ 2004-03-17  0:30             ` Dmitry Torokhov
  0 siblings, 0 replies; 13+ messages in thread
From: Dmitry Torokhov @ 2004-03-17  0:30 UTC (permalink / raw)
  To: john stultz; +Cc: acpi-devel, Karol Kozimor, lkml

On Tuesday 16 March 2004 06:32 pm, john stultz wrote:
> On Tue, 2004-03-16 at 15:19, Dmitry Torokhov wrote:
> > PM timer does not install CPUFREQ handler which would scale cpu_khz to
> > give proper display. I might cook up something later tonight.
> 
> Actually, the cpufreq handler is installed by an initcall regardless of
> which time-source is used. However as the handler changes a few TSC
> specific variables, it exits in timer_tsc.c.
>

Yes, you are of course right, I missed that fact, sorry.

-- 
Dmitry

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

* Re: [ACPI] X86_PM_TIMER: /proc/cpuinfo doesn't get updated
  2004-03-17  0:13           ` X86_PM_TIMER: /proc/cpuinfo doesn't get updated Karol Kozimor
@ 2004-03-17  0:33             ` Dmitry Torokhov
  0 siblings, 0 replies; 13+ messages in thread
From: Dmitry Torokhov @ 2004-03-17  0:33 UTC (permalink / raw)
  To: Karol Kozimor; +Cc: john stultz, Dominik Brodowski, acpi-devel, lkml

On Tuesday 16 March 2004 07:13 pm, Karol Kozimor wrote:
> Thus wrote john stultz:
> > Hmm. This is untested, but I think this should do the trick.
> 
> Hmm... without the patch, neither cpu MHz nor bogomips are updated, with
> the patch cpu MHz value seems correct (both using acpi.ko and
> speedstep-ich.ko, but the bogomips is still at its initial value.
> Best regards,
> 

Karol, do you have a P4? AFAIK P4's TSC is stable even if core frequence
changes so loop_per_juffy (== bogomips) need not be updated.

-- 
Dmitry

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

* Re: X86_PM_TIMER: /proc/cpuinfo doesn't get updated
       [not found]             ` <20040316233334.GA9001-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org>
@ 2004-03-17  0:46               ` john stultz
       [not found]                 ` <1079484413.5408.56.camel-ZXXC8hg/5Ur1HCVp7OyP2DJtLkR7yuzc@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: john stultz @ 2004-03-17  0:46 UTC (permalink / raw)
  To: Dominik Brodowski
  Cc: Karol Kozimor, dtor_core-yWtbtysYrB+LZ21kGMrzwg,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, lkml

On Tue, 2004-03-16 at 15:33, Dominik Brodowski wrote:
> On Tue, Mar 16, 2004 at 03:28:15PM -0800, john stultz wrote:
> > On Tue, 2004-03-16 at 13:42, Karol Kozimor wrote:
> > > Thus wrote Daniele Venzano:
> > > > > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > > > > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > > > > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > > > > issue seems cosmetic only, CPU frequency changes (watching
> > > > > temperature/battery life).
> > > > I can confirm, I'm seeing the same behavior. Please note that the
> > > > bogomips count gets updated, it's only the frequency that doesn't
> > > > change.
> > > 
> > > Same here with a P4-M, follow-up to John and Dmitry.
> > 
> > Hmm. This is untested, but I think this should do the trick.
> > 
> > Dominik: Is there any reason I'm not seeing why cpu_khz should only be
> > updated when using the TSC?
> 
> Is cpu_khz always correct (or, at least, nonzero) when we're reaching this 
> code path?

Using the PIT time source, cpu_khz is zero, so maybe it should be
conditional on if(cpu_khz)?

thanks
-john



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: X86_PM_TIMER: /proc/cpuinfo doesn't get updated
       [not found]                 ` <1079484413.5408.56.camel-ZXXC8hg/5Ur1HCVp7OyP2DJtLkR7yuzc@public.gmane.org>
@ 2004-03-17  9:50                   ` Dominik Brodowski
  2004-03-18 20:55                     ` [PATCH] linux-2.6.5-rc1_cpukhz-fix_A0.patch john stultz
  0 siblings, 1 reply; 13+ messages in thread
From: Dominik Brodowski @ 2004-03-17  9:50 UTC (permalink / raw)
  To: john stultz
  Cc: Karol Kozimor, dtor_core-yWtbtysYrB+LZ21kGMrzwg,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, lkml

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

On Tue, Mar 16, 2004 at 04:46:54PM -0800, john stultz wrote:
> On Tue, 2004-03-16 at 15:33, Dominik Brodowski wrote:
> > On Tue, Mar 16, 2004 at 03:28:15PM -0800, john stultz wrote:
> > > On Tue, 2004-03-16 at 13:42, Karol Kozimor wrote:
> > > > Thus wrote Daniele Venzano:
> > > > > > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > > > > > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > > > > > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > > > > > issue seems cosmetic only, CPU frequency changes (watching
> > > > > > temperature/battery life).
> > > > > I can confirm, I'm seeing the same behavior. Please note that the
> > > > > bogomips count gets updated, it's only the frequency that doesn't
> > > > > change.
> > > > 
> > > > Same here with a P4-M, follow-up to John and Dmitry.
> > > 
> > > Hmm. This is untested, but I think this should do the trick.
> > > 
> > > Dominik: Is there any reason I'm not seeing why cpu_khz should only be
> > > updated when using the TSC?
> > 
> > Is cpu_khz always correct (or, at least, nonzero) when we're reaching this 
> > code path?
> 
> Using the PIT time source, cpu_khz is zero, so maybe it should be
> conditional on if(cpu_khz)?

That will do the trick.

	Dominik

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

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

* [PATCH] linux-2.6.5-rc1_cpukhz-fix_A0.patch
  2004-03-17  9:50                   ` Dominik Brodowski
@ 2004-03-18 20:55                     ` john stultz
  0 siblings, 0 replies; 13+ messages in thread
From: john stultz @ 2004-03-18 20:55 UTC (permalink / raw)
  To: Dominik Brodowski, Andrew Morton
  Cc: Karol Kozimor, dtor_core, acpi-devel, lkml

On Wed, 2004-03-17 at 01:50, Dominik Brodowski wrote:
> On Tue, Mar 16, 2004 at 04:46:54PM -0800, john stultz wrote:
> > On Tue, 2004-03-16 at 15:33, Dominik Brodowski wrote:
> > > On Tue, Mar 16, 2004 at 03:28:15PM -0800, john stultz wrote:
> > > > On Tue, 2004-03-16 at 13:42, Karol Kozimor wrote:
> > > > > Thus wrote Daniele Venzano:
> > > > > > > I have a notebook with an Athlon-M CPU. I tried linux 2.6.4 with
> > > > > > > CONFIG_X86_PM_TIMER=y and I noticed that /proc/cpuinfo doesn't get
> > > > > > > updated when I switch frequency (via sysfs, using powernow-k7). The is
> > > > > > > issue seems cosmetic only, CPU frequency changes (watching
> > > > > > > temperature/battery life).
> > > > > > I can confirm, I'm seeing the same behavior. Please note that the
> > > > > > bogomips count gets updated, it's only the frequency that doesn't
> > > > > > change.
> > > > > 
> > > > > Same here with a P4-M, follow-up to John and Dmitry.
> > > > 
> > > > Hmm. This is untested, but I think this should do the trick.
> > > > 
> > > > Dominik: Is there any reason I'm not seeing why cpu_khz should only be
> > > > updated when using the TSC?
> > > 
> > > Is cpu_khz always correct (or, at least, nonzero) when we're reaching this 
> > > code path?
> > 
> > Using the PIT time source, cpu_khz is zero, so maybe it should be
> > conditional on if(cpu_khz)?
> 
> That will do the trick.

Patch below.

This small patch insures that cpu_khz is adjusted on cpufreq
notifications even when the tsc timesource is not in use. It fixes the
mostly cosmetic issue when using the ACPI PM timesource of /proc/cpuinfo
not being properly updated when cpu frequency was lowered. 

Please let me know if you have any additional feedback.

thanks
-john

diff -Nru a/arch/i386/kernel/timers/timer_tsc.c b/arch/i386/kernel/timers/timer_tsc.c
--- a/arch/i386/kernel/timers/timer_tsc.c	Thu Mar 18 12:50:08 2004
+++ b/arch/i386/kernel/timers/timer_tsc.c	Thu Mar 18 12:50:08 2004
@@ -360,8 +360,9 @@
 		if (variable_tsc)
 			cpu_data[freq->cpu].loops_per_jiffy = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new);
 #ifndef CONFIG_SMP
-		if (use_tsc) {
+		if(cpu_khz)
 			cpu_khz = cpufreq_scale(cpu_khz_ref, ref_freq, freq->new);
+		if (use_tsc) {
 			if (variable_tsc) {
 				fast_gettimeoffset_quotient = cpufreq_scale(fast_gettimeoffset_ref, freq->new, ref_freq);
 				set_cyc2ns_scale(cpu_khz/1000);

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

end of thread, other threads:[~2004-03-18 20:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-16 18:22 X86_PM_TIMER: /proc/cpuinfo doesn't get updated Luca
     [not found] ` <20040316182257.GA2734-sTXFmx6KbOnUXq0IF5SVAZ4oGUkBHcCu@public.gmane.org>
2004-03-16 19:48   ` Daniele Venzano
2004-03-16 21:42     ` [ACPI] " Karol Kozimor
2004-03-16 23:19       ` Dmitry Torokhov
     [not found]         ` <200403161819.55351.dtor_core-yWtbtysYrB+LZ21kGMrzwg@public.gmane.org>
2004-03-16 23:32           ` john stultz
2004-03-17  0:30             ` [ACPI] " Dmitry Torokhov
2004-03-16 23:28       ` john stultz
     [not found]         ` <1079479694.5408.47.camel-ZXXC8hg/5Ur1HCVp7OyP2DJtLkR7yuzc@public.gmane.org>
2004-03-16 23:33           ` Dominik Brodowski
     [not found]             ` <20040316233334.GA9001-X3ehHDuj6sIIGcDfoQAp7BvVK+yQ3ZXh@public.gmane.org>
2004-03-17  0:46               ` john stultz
     [not found]                 ` <1079484413.5408.56.camel-ZXXC8hg/5Ur1HCVp7OyP2DJtLkR7yuzc@public.gmane.org>
2004-03-17  9:50                   ` Dominik Brodowski
2004-03-18 20:55                     ` [PATCH] linux-2.6.5-rc1_cpukhz-fix_A0.patch john stultz
2004-03-17  0:13           ` X86_PM_TIMER: /proc/cpuinfo doesn't get updated Karol Kozimor
2004-03-17  0:33             ` [ACPI] " Dmitry Torokhov

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