Skip to content

Commit

Permalink
toshiba: use ioremap_cached
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Ingo Molnar committed Apr 30, 2008
1 parent 2544a87 commit 1dcf83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/toshiba.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int tosh_probe(void)
int i,major,minor,day,year,month,flag;
unsigned char signature[7] = { 0x54,0x4f,0x53,0x48,0x49,0x42,0x41 };
SMMRegisters regs;
void __iomem *bios = ioremap(0xf0000, 0x10000);
void __iomem *bios = ioremap_cache(0xf0000, 0x10000);

if (!bios)
return -ENOMEM;
Expand Down

0 comments on commit 1dcf83f

Please sign in to comment.