* [PATCH] x86: use WARN_ONCE in workaround for mtrr mask
@ 2008-09-19 18:45 Yinghai Lu
2008-09-22 11:10 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Yinghai Lu @ 2008-09-19 18:45 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, Andrew Morton
Cc: linux-kernel, Yinghai Lu
so could help to catch attention about bug in bios about mtrr mask setting
WARN_ONCE get into mainline already. let use it.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
---
arch/x86/kernel/cpu/mtrr/generic.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
Index: linux-2.6/arch/x86/kernel/cpu/mtrr/generic.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/cpu/mtrr/generic.c
+++ linux-2.6/arch/x86/kernel/cpu/mtrr/generic.c
@@ -401,12 +401,7 @@ static void generic_get_mtrr(unsigned in
tmp |= ~((1<<(hi - 1)) - 1);
if (tmp != mask_lo) {
- static int once = 1;
-
- if (once) {
- printk(KERN_INFO "mtrr: your BIOS has set up an incorrect mask, fixing it up.\n");
- once = 0;
- }
+ WARN_ONCE(1, KERN_INFO "mtrr: your BIOS has set up an incorrect mask, fixing it up.\n");
mask_lo = tmp;
}
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86: use WARN_ONCE in workaround for mtrr mask
2008-09-19 18:45 [PATCH] x86: use WARN_ONCE in workaround for mtrr mask Yinghai Lu
@ 2008-09-22 11:10 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-09-22 11:10 UTC (permalink / raw)
To: Yinghai Lu
Cc: Thomas Gleixner, H. Peter Anvin, Andrew Morton, linux-kernel,
Arjan van de Ven
* Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> so could help to catch attention about bug in bios about mtrr mask setting
>
> WARN_ONCE get into mainline already. let use it.
>
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
applied to tip/x86/debug, thanks Yinghai!
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-22 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-19 18:45 [PATCH] x86: use WARN_ONCE in workaround for mtrr mask Yinghai Lu
2008-09-22 11:10 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox