diff options
author | Phil Edworthy <phil.edworthy@renesas.com> | 2012-02-21 03:29:57 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-02-23 23:21:46 -0500 |
commit | 1ae911cba414f7e805b2cb3798fa402b36a21601 (patch) | |
tree | 2fdcac2443cd99dc22c3f4dfa2cf24382dee4f80 /arch | |
parent | befe0756d5fa5841f02e2029bbcc77225b9a13bb (diff) |
sh: Fix sh2a build error for CONFIG_CACHE_WRITETHROUGH
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/mm/cache-sh2a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/mm/cache-sh2a.c b/arch/sh/mm/cache-sh2a.c index ae08cbbfa569..949e2d3138a0 100644 --- a/arch/sh/mm/cache-sh2a.c +++ b/arch/sh/mm/cache-sh2a.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #define MAX_OCACHE_PAGES 32 | 23 | #define MAX_OCACHE_PAGES 32 |
24 | #define MAX_ICACHE_PAGES 32 | 24 | #define MAX_ICACHE_PAGES 32 |
25 | 25 | ||
26 | #ifdef CONFIG_CACHE_WRITEBACK | ||
26 | static void sh2a_flush_oc_line(unsigned long v, int way) | 27 | static void sh2a_flush_oc_line(unsigned long v, int way) |
27 | { | 28 | { |
28 | unsigned long addr = (v & 0x000007f0) | (way << 11); | 29 | unsigned long addr = (v & 0x000007f0) | (way << 11); |
@@ -34,6 +35,7 @@ static void sh2a_flush_oc_line(unsigned long v, int way) | |||
34 | __raw_writel(data, CACHE_OC_ADDRESS_ARRAY | addr); | 35 | __raw_writel(data, CACHE_OC_ADDRESS_ARRAY | addr); |
35 | } | 36 | } |
36 | } | 37 | } |
38 | #endif | ||
37 | 39 | ||
38 | static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v) | 40 | static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v) |
39 | { | 41 | { |