Merge branch 'x86/urgent' into x86/pat
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kvm / x86.c
index 3d45290118284223ffc1c3d2c66fa0ffd08ba1cf..633ccc7400a43ea230e3c02b252d4b80ff838140 100644 (file)
@@ -2297,12 +2297,7 @@ static int emulator_cmpxchg_emulated(unsigned long addr,
                                     unsigned int bytes,
                                     struct kvm_vcpu *vcpu)
 {
-       static int reported;
-
-       if (!reported) {
-               reported = 1;
-               printk(KERN_WARNING "kvm: emulating exchange as write\n");
-       }
+       printk_once(KERN_WARNING "kvm: emulating exchange as write\n");
 #ifndef CONFIG_X86_64
        /* guests cmpxchg8b have to be emulated atomically */
        if (bytes == 8) {