[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1203593558-3391-1-git-send-email-joerg.roedel@amd.com>
Date: Thu, 21 Feb 2008 12:32:38 +0100
From: "Joerg Roedel" <joerg.roedel@....com>
To: tglx@...utronix.de, mingo@...hat.com
cc: linux-kernel@...r.kernel.org, "Joerg Roedel" <joerg.roedel@....com>
Subject: [PATCH] X86: remove WARN_ON if MTRRs are all blank
When running Linux inside KVM all MTRRs are blank because there is no reason to
set them up. So doing a WARN_ON if all MTRRs are blank is not necessary. It is
sufficient to print the warning message using printk.
Signed-off-by: Joerg Roedel <joerg.roedel@....com>
---
arch/x86/kernel/cpu/mtrr/main.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
index b6e136f..e7f95a9 100644
--- a/arch/x86/kernel/cpu/mtrr/main.c
+++ b/arch/x86/kernel/cpu/mtrr/main.c
@@ -689,7 +689,6 @@ int __init mtrr_trim_uncached_memory(unsigned long end_pfn)
/* kvm/qemu doesn't have mtrr set right, don't trim them all */
if (!highest_pfn) {
printk(KERN_WARNING "WARNING: strange, CPU MTRRs all blank?\n");
- WARN_ON(1);
return 0;
}
--
1.5.3.7
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists