[tip:x86/urgent] Add TAINT_FIRMWARE_WORKAROUND on MTRR fixup

From: tip-bot for Prarit Bhargava
Date: Mon Dec 05 2011 - 12:36:18 EST


Commit-ID: 644ddf588f5dba34df483a6ea8abe639cc102289
Gitweb: http://git.kernel.org/tip/644ddf588f5dba34df483a6ea8abe639cc102289
Author: Prarit Bhargava <prarit@xxxxxxxxxx>
AuthorDate: Tue, 18 Oct 2011 13:24:10 -0400
Committer: Ingo Molnar <mingo@xxxxxxx>
CommitDate: Mon, 5 Dec 2011 13:48:50 +0100

Add TAINT_FIRMWARE_WORKAROUND on MTRR fixup

TAINT_FIRMWARE_WORKAROUND should be set when an MTRR fixup
is done.

Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
Link: http://lkml.kernel.org/r/1318958650-12447-1-git-send-email-prarit@xxxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
arch/x86/kernel/cpu/mtrr/generic.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch/x86/kernel/cpu/mtrr/generic.c
index a71efcdb..e1fe7f4 100644
--- a/arch/x86/kernel/cpu/mtrr/generic.c
+++ b/arch/x86/kernel/cpu/mtrr/generic.c
@@ -547,6 +547,7 @@ static void generic_get_mtrr(unsigned int reg, unsigned long *base,

if (tmp != mask_lo) {
printk(KERN_WARNING "mtrr: your BIOS has configured an incorrect mask, fixing it.\n");
+ add_taint(TAINT_FIRMWARE_WORKAROUND);
mask_lo = tmp;
}
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/