Subject: [PATCH] ARM: fix isb regression on CPU < v7

From: [email-masked] (Will Deacon)
Date: Wed, 6 Oct 2010 09:29:10 +0100

Hi Linus,

> The kernel does not compile for my ARM926EJ-S system U300 due to
> the isb instruction inserted in generic assember statement from
> commit 8925ec4c530094b878e7e28a1fd78e7122afd973, "ARM: 6385/1:
> setup: detect aliasing I-cache when D-cache is non-aliasing"
> hey the isb is only available when assembling for v7 so let's
> use the generic isb() macro from setup.h instead.
> 
> Cc: Will Deacon <[email-masked]>
> Signed-off-by: Linus Walleij <[email-masked]>
> ---

Oops, well spotted! I suppose it's asking a bit much of the compiler
for it to optimise that case statement away when you're not building
for a v7 target :)

Acked-by: Will Deacon <[email-masked]>

Cheers,

Will