[PATCH] Add TAINT_FIRMWARE_WORKAROUND on MTRR fixup

From: Prarit Bhargava
Date: Tue Oct 18 2011 - 13:24:34 EST


TAINT_FIRMWARE_WORKAROUND should be set when an MTRR fixup is done.

Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>
Cc: x86@xxxxxxxxxx
---
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 a71efcd..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;
}
}
--
1.7.1

--
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/