sparc64: Use pause instruction when available.
authorDavid S. Miller <davem@davemloft.net>
Sun, 28 Oct 2012 06:00:41 +0000 (23:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Oct 2012 06:00:41 +0000 (23:00 -0700)
commite9b9eb59ffcdee09ec96b040f85c919618f4043e
tree30f93cc20aa577ec5b12f609641fdf84d0bd5124
parent270c10e00a1e557e068803a22e0556281ceb1830
sparc64: Use pause instruction when available.

In atomic backoff and cpu_relax(), use the pause instruction
found on SPARC-T4 and later.

It makes the cpu strand unselectable for the given number of
cycles, unless an intervening disrupting trap occurs.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/backoff.h
arch/sparc/include/asm/processor_64.h
arch/sparc/kernel/entry.h
arch/sparc/kernel/setup_64.c
arch/sparc/kernel/vmlinux.lds.S