]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Make lock backoff really a NOP on UP builds.
authorDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 05:53:26 +0000 (22:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 05:53:26 +0000 (22:53 -0700)
commitbee2e1279b7df282ceb351d6673dbbc48d488c6d
treeb5ad2f63da4c1caa5d20487cf370d51e4392111c
parentfc94c6e45a9895c676072f453874d734944189d2
sparc64: Make lock backoff really a NOP on UP builds.

As noticed by Mikulas Patocka, the backoff macros don't
completely nop out for UP builds, we still get a
branch always and a delay slot nop.

Fix this by making the branch to the backoff spin loop
selective, then we can nop out the spin loop completely.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/backoff.h
arch/sparc/lib/atomic_64.S
arch/sparc/lib/bitops.S