Commit a39e2c39 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] monolitic_clock, timer_{tsc,hpet} and CPUFREQ

From: Dmitry Torokhov <dtor_core@ameritech.net>

I noticed that although timer_tsc registers cpufreq notifier to detect
frequency changes and adjust cpu_khz it does not set cyc2ns_scale.
parent 8e62b8a7
...@@ -312,6 +312,7 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val, ...@@ -312,6 +312,7 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
if (use_tsc) { if (use_tsc) {
fast_gettimeoffset_quotient = cpufreq_scale(fast_gettimeoffset_ref, freq->new, ref_freq); fast_gettimeoffset_quotient = cpufreq_scale(fast_gettimeoffset_ref, freq->new, ref_freq);
cpu_khz = cpufreq_scale(cpu_khz_ref, ref_freq, freq->new); cpu_khz = cpufreq_scale(cpu_khz_ref, ref_freq, freq->new);
set_cyc2ns_scale(cpu_khz/1000);
} }
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment