[PATCH V4 4/6] arm: mvebu: add L2 cache support

Arnd Bergmann arnd at arndb.de
Fri Sep 21 09:19:41 EDT 2012


On Friday 21 September 2012, Gregory CLEMENT wrote:
> Signed-off-by: Gregory CLEMENT <gregory.clement at free-electrons.com>
> Tested-and-reviewed-by: Yehuda Yitschak <yehuday at marvell.com>
> Tested-and-reviewed-by: Lior Amsalem <alior at marvell.com>
> 
> Cc: Jason Cooper <jason at lakedaemon.net>
> Cc: Andrew Lunn <andrew at lunn.ch>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Olof Johansson <olof at lixom.net>

Acked-by: Arnd Bergmann <arnd at arndb.de>

> @@ -130,4 +131,7 @@ static const struct of_device_id mpic_of_match[] __initconst = {
>  void __init armada_370_xp_init_irq(void)
>  {
>         of_irq_init(mpic_of_match);
> +#ifdef CONFIG_CACHE_L2X0
> +       l2x0_of_init(0, ~0UL);
> +#endif
>  }

But you can leave out the #ifdef. l2x0_of_init is already defined as an empty
function if either CONFIG_OF or CONFIG_L2X0 is disabled.

	Arnd



More information about the linux-arm-kernel mailing list