Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Inform TSC deadline clockevent device about recalibration
[kvmfornfv.git]
/
kernel
/
arch
/
x86
/
kernel
/
tsc.c
diff --git
a/kernel/arch/x86/kernel/tsc.c
b/kernel/arch/x86/kernel/tsc.c
index
c7c4d9c
..
eafe938
100644
(file)
--- a/
kernel/arch/x86/kernel/tsc.c
+++ b/
kernel/arch/x86/kernel/tsc.c
@@
-22,6
+22,7
@@
#include <asm/nmi.h>
#include <asm/x86_init.h>
#include <asm/geode.h>
#include <asm/nmi.h>
#include <asm/x86_init.h>
#include <asm/geode.h>
+#include <asm/apic.h>
unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */
EXPORT_SYMBOL(cpu_khz);
unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */
EXPORT_SYMBOL(cpu_khz);
@@
-1141,6
+1142,9
@@
static void tsc_refine_calibration_work(struct work_struct *work)
(unsigned long)tsc_khz / 1000,
(unsigned long)tsc_khz % 1000);
(unsigned long)tsc_khz / 1000,
(unsigned long)tsc_khz % 1000);
+ /* Inform the TSC deadline clockevent devices about the recalibration */
+ lapic_update_tsc_freq();
+
out:
clocksource_register_khz(&clocksource_tsc, tsc_khz);
}
out:
clocksource_register_khz(&clocksource_tsc, tsc_khz);
}