]> git.hungrycats.org Git - linux/commit
[CPUFREQ] Handle P4 TSC scaling.
authorDave Jones <davej@redhat.com>
Fri, 7 May 2004 16:45:54 +0000 (17:45 +0100)
committerDave Jones <davej@delerium.codemonkey.org.uk>
Fri, 7 May 2004 16:45:54 +0000 (17:45 +0100)
commit314a29b2b8899a02cbdbd6932293a386c446564f
tree4f853394a1327b013da5b0f3c31a11fe65ef25cf
parent460d0bf0ca45df0d884ffb5ff56225041bef8e5a
[CPUFREQ] Handle P4 TSC scaling.
Currently, the TSC cpufreq notifiers does almost nothing on P4s, as we
assumed the TSC to be constant independent of _all_ frequency transitions.
Extensive testing by Karol Kozimor has shown, though, that only _throttling_
does not affect the TSC, but _scaling_ does.

So:
- pass the CPUFREQ_CONST_LOOPS flags (to be exact, all flags) to cpufreq
  transition notifiers
- skip TSC value changes if this flag is set
- set this flag for P4 / P4-Ms only in p4-clockmod [On Pentium-M banias
  the TSC _is_ affected by p4-clock modulation
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
arch/i386/kernel/timers/timer_tsc.c
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h