* [PATCH] SFI: use ioremap_cache() instead of ioremap()
@ 2011-01-12 4:32 Len Brown
0 siblings, 0 replies; only message in thread
From: Len Brown @ 2011-01-12 4:32 UTC (permalink / raw)
To: sfi-devel; +Cc: linux-kernel
From: Len Brown <len.brown@intel.com>
We copied ACPI's oversight of using ioremap() and creating
non-cached table mappings when we should have been using
ioremap_cache().
Signed-off-by: Len Brown <len.brown@intel.com>
---
drivers/sfi/sfi_core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/sfi/sfi_core.c b/drivers/sfi/sfi_core.c
index ceba593..04113e5 100644
--- a/drivers/sfi/sfi_core.c
+++ b/drivers/sfi/sfi_core.c
@@ -101,7 +101,7 @@ static void __iomem * __ref sfi_map_memory(u64 phys, u32 size)
return NULL;
if (sfi_use_ioremap)
- return ioremap(phys, size);
+ return ioremap_cache(phys, size);
else
return early_ioremap(phys, size);
}
--
1.7.4.rc1.7.g2cf08
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-12 4:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-12 4:32 [PATCH] SFI: use ioremap_cache() instead of ioremap() Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®