All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toshiba: Use ioremap_cached
@ 2008-04-29 13:20 Alan Cox
  2008-04-29 14:15 ` Ingo Molnar
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2008-04-29 13:20 UTC (permalink / raw)
  To: akpm, linux-kernel, mingo

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>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.25-mm1/drivers/char/toshiba.c linux-2.6.25-mm1/drivers/char/toshiba.c
--- linux.vanilla-2.6.25-mm1/drivers/char/toshiba.c	2008-04-28 11:36:48.000000000 +0100
+++ linux-2.6.25-mm1/drivers/char/toshiba.c	2008-04-28 11:51:54.000000000 +0100
@@ -426,7 +426,7 @@
 	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;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-29 15:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29 13:20 [PATCH] toshiba: Use ioremap_cached Alan Cox
2008-04-29 14:15 ` Ingo Molnar
2008-04-29 15:14   ` Andrew Morton
2008-04-29 15:23     ` Ingo Molnar
2008-04-29 15:37       ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.