x86: work around MTRR mask setting, v2

improve the debug printout:

- make it actually display something
- print it only once

would be nice to have a WARN_ONCE() facility, to feed such things to
kerneloops.org.

Signed-off-by: Ingo Molnar <mingo@elte.hu>

+6 -1
+6 -1
arch/x86/kernel/cpu/mtrr/generic.c
··· 401 401 tmp |= ~((1<<(hi - 1)) - 1); 402 402 403 403 if (tmp != mask_lo) { 404 - WARN_ON("mtrr: your BIOS has set up an incorrect mask, fixing it up.\n"); 404 + static int once = 1; 405 + 406 + if (once) { 407 + printk(KERN_INFO "mtrr: your BIOS has set up an incorrect mask, fixing it up.\n"); 408 + once = 0; 409 + } 405 410 mask_lo = tmp; 406 411 } 407 412 }