aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:34:09 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:09 -0500
commit9af993a92623e022c176459fa6607a564b9a7eaf (patch)
treeda13fbc9989fde0f8dddf7ae6dd60fc7e4dded6b
parent0879750f5d75dee0546316b7b0e83fb6cd258ad7 (diff)
x86: make ioremap() UC by default
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>
-rw-r--r--include/asm-x86/io_64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/io_64.h b/include/asm-x86/io_64.h
index ee7a5c955962..f64a59cc396d 100644
--- a/include/asm-x86/io_64.h
+++ b/include/asm-x86/io_64.h
@@ -166,7 +166,7 @@ extern void __iomem *ioremap_cache(unsigned long offset, unsigned long size);
166 */ 166 */
167static inline void __iomem *ioremap(unsigned long offset, unsigned long size) 167static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
168{ 168{
169 return ioremap_cache(offset, size); 169 return ioremap_nocache(offset, size);
170} 170}
171 171
172extern void iounmap(volatile void __iomem *addr); 172extern void iounmap(volatile void __iomem *addr);