Skip to content

Commit

Permalink
x86: make ioremap() UC by default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 0879750 commit 9af993a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/io_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9af993a

Please sign in to comment.