diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-20 14:24:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-20 14:25:03 -0400 |
commit | bfefb7a0c6e08736f2d5917c468467f134bf28bb (patch) | |
tree | 7aa7084114dc083fe5b4d7b532901bdeb67188e7 /arch/sh/mm/cache-sh2.c | |
parent | 8d0cc631f6dd0a9283ceb7d61d8b85ecbcd355ea (diff) | |
parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) |
Merge branch 'linus' into x86/urgent
Merge reason: Bring in changes that the next patch will depend on.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sh/mm/cache-sh2.c')
-rw-r--r-- | arch/sh/mm/cache-sh2.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/sh/mm/cache-sh2.c b/arch/sh/mm/cache-sh2.c index c4e80d2b764b..699a71f46327 100644 --- a/arch/sh/mm/cache-sh2.c +++ b/arch/sh/mm/cache-sh2.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <asm/cacheflush.h> | 16 | #include <asm/cacheflush.h> |
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | 18 | ||
19 | void __flush_wback_region(void *start, int size) | 19 | static void sh2__flush_wback_region(void *start, int size) |
20 | { | 20 | { |
21 | unsigned long v; | 21 | unsigned long v; |
22 | unsigned long begin, end; | 22 | unsigned long begin, end; |
@@ -37,7 +37,7 @@ void __flush_wback_region(void *start, int size) | |||
37 | } | 37 | } |
38 | } | 38 | } |
39 | 39 | ||
40 | void __flush_purge_region(void *start, int size) | 40 | static void sh2__flush_purge_region(void *start, int size) |
41 | { | 41 | { |
42 | unsigned long v; | 42 | unsigned long v; |
43 | unsigned long begin, end; | 43 | unsigned long begin, end; |
@@ -51,7 +51,7 @@ void __flush_purge_region(void *start, int size) | |||
51 | CACHE_OC_ADDRESS_ARRAY | (v & 0x00000ff0) | 0x00000008); | 51 | CACHE_OC_ADDRESS_ARRAY | (v & 0x00000ff0) | 0x00000008); |
52 | } | 52 | } |
53 | 53 | ||
54 | void __flush_invalidate_region(void *start, int size) | 54 | static void sh2__flush_invalidate_region(void *start, int size) |
55 | { | 55 | { |
56 | #ifdef CONFIG_CACHE_WRITEBACK | 56 | #ifdef CONFIG_CACHE_WRITEBACK |
57 | /* | 57 | /* |
@@ -82,3 +82,10 @@ void __flush_invalidate_region(void *start, int size) | |||
82 | CACHE_OC_ADDRESS_ARRAY | (v & 0x00000ff0) | 0x00000008); | 82 | CACHE_OC_ADDRESS_ARRAY | (v & 0x00000ff0) | 0x00000008); |
83 | #endif | 83 | #endif |
84 | } | 84 | } |
85 | |||
86 | void __init sh2_cache_init(void) | ||
87 | { | ||
88 | __flush_wback_region = sh2__flush_wback_region; | ||
89 | __flush_purge_region = sh2__flush_purge_region; | ||
90 | __flush_invalidate_region = sh2__flush_invalidate_region; | ||
91 | } | ||