Skip to content

Commit

Permalink
sh: Fix sh2a build error for CONFIG_CACHE_WRITETHROUGH
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Phil Edworthy authored and Paul Mundt committed Feb 24, 2012
1 parent befe075 commit 1ae911c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/mm/cache-sh2a.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define MAX_OCACHE_PAGES 32
#define MAX_ICACHE_PAGES 32

#ifdef CONFIG_CACHE_WRITEBACK
static void sh2a_flush_oc_line(unsigned long v, int way)
{
unsigned long addr = (v & 0x000007f0) | (way << 11);
Expand All @@ -34,6 +35,7 @@ static void sh2a_flush_oc_line(unsigned long v, int way)
__raw_writel(data, CACHE_OC_ADDRESS_ARRAY | addr);
}
}
#endif

static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v)
{
Expand Down

0 comments on commit 1ae911c

Please sign in to comment.