]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix call to set_cyc2ns_scale() from time_cpufreq_notifier()
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Mon, 7 Apr 2008 10:14:45 +0000 (12:14 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 7 Apr 2008 19:09:14 +0000 (21:09 +0200)
commit5c5f0d6d81c6894cb5ba7388d1bfa722c1d1bbd0
tree996302561d3970325980af4a324bfd8440ad5e41
parentdc0183d53f3a15e86a3e9f83620fbbf17d4735c3
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: Karsten Wiese <fzu@wemgehoertderstaat.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/tsc_32.c
arch/x86/kernel/tsc_64.c