Skip to content
Commit 4f41c94d authored by Karsten Wiese's avatar Karsten Wiese Committed by Ingo Molnar
Browse files

x86: fix call to set_cyc2ns_scale() from time_cpufreq_notifier()



In time_cpufreq_notifier() the cpu id to act upon is held in freq->cpu. Use it
instead of smp_processor_id() in the call to set_cyc2ns_scale().
This makes the preempt_*able() unnecessary and lets set_cyc2ns_scale() update
the intended cpu's cyc2ns.

Related mail/thread: http://lkml.org/lkml/2007/12/7/130

Signed-off-by: default avatarKarsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5b13d863
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