diff options
Diffstat (limited to 'arch/x86/kernel/cpu/mshyperv.c')
-rw-r--r-- | arch/x86/kernel/cpu/mshyperv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index 062f77279ce3..267daad8c036 100644 --- a/arch/x86/kernel/cpu/mshyperv.c +++ b/arch/x86/kernel/cpu/mshyperv.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/timer.h> | 29 | #include <asm/timer.h> |
30 | #include <asm/reboot.h> | 30 | #include <asm/reboot.h> |
31 | #include <asm/nmi.h> | 31 | #include <asm/nmi.h> |
32 | #include <clocksource/hyperv_timer.h> | ||
32 | 33 | ||
33 | struct ms_hyperv_info ms_hyperv; | 34 | struct ms_hyperv_info ms_hyperv; |
34 | EXPORT_SYMBOL_GPL(ms_hyperv); | 35 | EXPORT_SYMBOL_GPL(ms_hyperv); |
@@ -338,6 +339,15 @@ static void __init ms_hyperv_init_platform(void) | |||
338 | x2apic_phys = 1; | 339 | x2apic_phys = 1; |
339 | # endif | 340 | # endif |
340 | 341 | ||
342 | /* Register Hyper-V specific clocksource */ | ||
343 | hv_init_clocksource(); | ||
344 | #endif | ||
345 | } | ||
346 | |||
347 | void hv_setup_sched_clock(void *sched_clock) | ||
348 | { | ||
349 | #ifdef CONFIG_PARAVIRT | ||
350 | pv_ops.time.sched_clock = sched_clock; | ||
341 | #endif | 351 | #endif |
342 | } | 352 | } |
343 | 353 | ||