From a39e2c392d15aab2c2eb6f9d7542c7855a7eb92a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 9 Sep 2003 10:18:46 -0700 Subject: [PATCH] [PATCH] monolitic_clock, timer_{tsc,hpet} and CPUFREQ From: Dmitry Torokhov I noticed that although timer_tsc registers cpufreq notifier to detect frequency changes and adjust cpu_khz it does not set cyc2ns_scale. --- arch/i386/kernel/timers/timer_tsc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/i386/kernel/timers/timer_tsc.c b/arch/i386/kernel/timers/timer_tsc.c index f045ff34bdf89..1a96686f92d4a 100644 --- a/arch/i386/kernel/timers/timer_tsc.c +++ b/arch/i386/kernel/timers/timer_tsc.c @@ -312,6 +312,7 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val, if (use_tsc) { fast_gettimeoffset_quotient = cpufreq_scale(fast_gettimeoffset_ref, freq->new, ref_freq); cpu_khz = cpufreq_scale(cpu_khz_ref, ref_freq, freq->new); + set_cyc2ns_scale(cpu_khz/1000); } #endif } -- 2.53.0