diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 05:36:17 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 05:36:17 -0400 |
commit | f3c2575818fab45f8609e4aef2e43ab02b3a142e (patch) | |
tree | a4924d7dd8f8df229e36fab24ccccfe12437509b /include/asm-sh/cpu-sh4/cacheflush.h | |
parent | 87b0ef91b6f27c07bf7dcce8584437481f473092 (diff) |
sh: Calculate shm alignment at runtime.
Set the SHM alignment at runtime, based off of probed cache desc.
Optimize get_unmapped_area() to only colour align shared mappings.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/cpu-sh4/cacheflush.h')
-rw-r--r-- | include/asm-sh/cpu-sh4/cacheflush.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/asm-sh/cpu-sh4/cacheflush.h b/include/asm-sh/cpu-sh4/cacheflush.h index a95fc951aff6..515fd574267c 100644 --- a/include/asm-sh/cpu-sh4/cacheflush.h +++ b/include/asm-sh/cpu-sh4/cacheflush.h | |||
@@ -39,9 +39,6 @@ void p3_cache_init(void); | |||
39 | 39 | ||
40 | #define PG_mapped PG_arch_1 | 40 | #define PG_mapped PG_arch_1 |
41 | 41 | ||
42 | /* We provide our own get_unmapped_area to avoid cache alias issue */ | ||
43 | #define HAVE_ARCH_UNMAPPED_AREA | ||
44 | |||
45 | #ifdef CONFIG_MMU | 42 | #ifdef CONFIG_MMU |
46 | extern int remap_area_pages(unsigned long addr, unsigned long phys_addr, | 43 | extern int remap_area_pages(unsigned long addr, unsigned long phys_addr, |
47 | unsigned long size, unsigned long flags); | 44 | unsigned long size, unsigned long flags); |