Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

toshiba: use ioremap_cached

The switch of ioremap to default to uncached doesn't break this driver
but it does needlessly slow it down as BIOS space is cachable and this
driver is quite happy scanning cached ROM space.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Alan Cox and committed by
Ingo Molnar
1dcf83fd 2544a873

+1 -1
+1 -1
drivers/char/toshiba.c
··· 426 426 int i,major,minor,day,year,month,flag; 427 427 unsigned char signature[7] = { 0x54,0x4f,0x53,0x48,0x49,0x42,0x41 }; 428 428 SMMRegisters regs; 429 - void __iomem *bios = ioremap(0xf0000, 0x10000); 429 + void __iomem *bios = ioremap_cache(0xf0000, 0x10000); 430 430 431 431 if (!bios) 432 432 return -ENOMEM;