x86: Use printk_once()
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: "H. Peter Anvin" <hpa@zytor.com> LKML-Reference: <1249847649-11631-6-git-send-email-marcin.slusarz@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Цей коміт міститься в:

зафіксовано
Ingo Molnar

джерело
8bdbd962ec
коміт
9f51e24ee8
@@ -2261,12 +2261,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) {
|
||||
|
Посилання в новій задачі
Заблокувати користувача