Skip to content

Commit fab88d9

Browse files
Kuninori Morimotopmundt
authored andcommitted
sh: add weak l2_cache_init function.
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent d974ac2 commit fab88d9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎arch/sh/kernel/cpu/init.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ static void __init speculative_execution_init(void)
6262
#define speculative_execution_init() do { } while (0)
6363
#endif
6464

65+
/* 2nd-level cache init */
66+
void __uses_jump_to_uncached __attribute__ ((weak)) l2_cache_init(void)
67+
{
68+
}
69+
6570
/*
6671
* Generic first-level cache init
6772
*/
@@ -146,6 +151,8 @@ static void __uses_jump_to_uncached cache_init(void)
146151
flags &= ~CCR_CACHE_ENABLE;
147152
#endif
148153

154+
l2_cache_init();
155+
149156
ctrl_outl(flags, CCR);
150157
back_to_cached();
151158
}

0 commit comments

Comments
 (0)