diff options
author | Avi Kivity <avi@redhat.com> | 2010-12-16 04:27:23 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:30:56 -0500 |
commit | a63512a4d711c9bd6a5d03847f45fcf88cdea0c6 (patch) | |
tree | 8638629401129ea989703e643e2fcd12518b7a71 /arch/x86/kernel/kvm.c | |
parent | 175504cdbfef6a0fde3bafb6c38b4929049ac8ea (diff) |
KVM guest: Fix kvm clock initialization when it's configured out
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kernel/kvm.c')
-rw-r--r-- | arch/x86/kernel/kvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 91b3d650898c..8dc44662394b 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c | |||
@@ -486,7 +486,9 @@ static struct notifier_block kvm_pv_reboot_nb = { | |||
486 | #ifdef CONFIG_SMP | 486 | #ifdef CONFIG_SMP |
487 | static void __init kvm_smp_prepare_boot_cpu(void) | 487 | static void __init kvm_smp_prepare_boot_cpu(void) |
488 | { | 488 | { |
489 | #ifdef CONFIG_KVM_CLOCK | ||
489 | WARN_ON(kvm_register_clock("primary cpu clock")); | 490 | WARN_ON(kvm_register_clock("primary cpu clock")); |
491 | #endif | ||
490 | kvm_guest_cpu_init(); | 492 | kvm_guest_cpu_init(); |
491 | native_smp_prepare_boot_cpu(); | 493 | native_smp_prepare_boot_cpu(); |
492 | } | 494 | } |