[PATCH] Remove CPU_32v6K dependencies in asm/spinlock.h

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jan 17 08:01:29 EST 2011


On Mon, Jan 17, 2011 at 10:15:25AM +0000, Catalin Marinas wrote:
> In the SEV macro definition, can you also include the dsb? This
> barrier is only there because of sev, otherwise we don't need it (we
> have a dmb prior to releasing the lock).

I think until we have the whole SEV situation sorted out, it's best
to leave it as-is.

Leaving the dsb in there shouldn't cause a problem for a v6+v6k+v7
kernel, it just means we're wasting a few cycles stalling the
instruction pipeline while the dsb completes, which we don't really
need to do on v6.



More information about the linux-arm-kernel mailing list