[SPARC64]: Add sun4v_cpu_yield().

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2006-02-21 15:42:09 -08:00
parent 1bd0cd74d1
commit 6f5374c91f
2 changed files with 12 additions and 0 deletions

View File

@ -1786,3 +1786,12 @@ sun4v_cpu_qconf:
ta HV_FAST_TRAP ta HV_FAST_TRAP
retl retl
nop nop
/* returns %o0: status
*/
.globl sun4v_cpu_yield
sun4v_cpu_yield:
mov HV_FAST_CPU_YIELD, %o5
ta HV_FAST_TRAP
retl
nop

View File

@ -258,6 +258,9 @@
*/ */
#define HV_FAST_CPU_YIELD 0x12 #define HV_FAST_CPU_YIELD 0x12
#ifndef __ASSEMBLY__
extern unsigned long sun4v_cpu_yield(void);
#endif
/* cpu_qconf() /* cpu_qconf()
* TRAP: HV_FAST_TRAP * TRAP: HV_FAST_TRAP