diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-04-16 18:24:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:24:33 -0400 |
commit | dfbacdc1a0b568dfa69fb2c1b39b608074001083 (patch) | |
tree | f63fdb5db967253e46472ff776d1e22c38cee16e /arch/ppc64/kernel/maple_setup.c | |
parent | 7bbd827750e630003896c96d0212962276ee5d91 (diff) |
[PATCH] ppc64: Fix semantics of __ioremap
This patch fixes ppc64 __ioremap() so that it stops adding implicitely
_PAGE_GUARDED when the cache is not writeback, and instead, let the callers
provide the flag they want here. This allows things like framebuffers to
explicitely request a non-cacheable and non-guarded mapping which is more
efficient for that type of memory without side effects. The patch also
fixes all current callers to add _PAGE_GUARDED except btext, which is fine
without it.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc64/kernel/maple_setup.c')
-rw-r--r-- | arch/ppc64/kernel/maple_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/maple_setup.c b/arch/ppc64/kernel/maple_setup.c index 1db6ea0f336f..8cf95a27178e 100644 --- a/arch/ppc64/kernel/maple_setup.c +++ b/arch/ppc64/kernel/maple_setup.c | |||
@@ -142,7 +142,7 @@ static void __init maple_init_early(void) | |||
142 | if (physport) { | 142 | if (physport) { |
143 | void *comport; | 143 | void *comport; |
144 | /* Map the uart for udbg. */ | 144 | /* Map the uart for udbg. */ |
145 | comport = (void *)__ioremap(physport, 16, _PAGE_NO_CACHE); | 145 | comport = (void *)ioremap(physport, 16); |
146 | udbg_init_uart(comport, default_speed); | 146 | udbg_init_uart(comport, default_speed); |
147 | 147 | ||
148 | ppc_md.udbg_putc = udbg_putc; | 148 | ppc_md.udbg_putc = udbg_putc; |