]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86: make ioremap() UC by default
authorIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:34:09 +0000 (13:34 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:34:09 +0000 (13:34 +0100)
Yes! A mere 120 c_p_a() fixing and rewriting patches later,
we are now confident that we can enable UC by default for
ioremap(), on x86 too.

Every other architectures was doing this already. Doing so
makes Linux more robust against MTRR mixups (which might go
unnoticed if BIOS writers test other OSs only - where PAT
might override bad MTRRs defaults).

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/asm-x86/io_64.h

index ee7a5c95596247897f05cbc593dfa7cf4dab49b8..f64a59cc396d5eaee13c7b0840df629f9c909733 100644 (file)
@@ -166,7 +166,7 @@ extern void __iomem *ioremap_cache(unsigned long offset, unsigned long size);
  */
 static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
 {
-       return ioremap_cache(offset, size);
+       return ioremap_nocache(offset, size);
 }
 
 extern void iounmap(volatile void __iomem *addr);