Skip to content

Commit

Permalink
[SPARC64]: Add sun4v_cpu_yield().
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 1bd0cd7 commit 6f5374c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/sparc64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1786,3 +1786,12 @@ sun4v_cpu_qconf:
ta HV_FAST_TRAP
retl
nop

/* returns %o0: status
*/
.globl sun4v_cpu_yield
sun4v_cpu_yield:
mov HV_FAST_CPU_YIELD, %o5
ta HV_FAST_TRAP
retl
nop
3 changes: 3 additions & 0 deletions include/asm-sparc64/hypervisor.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@
*/
#define HV_FAST_CPU_YIELD 0x12

#ifndef __ASSEMBLY__
extern unsigned long sun4v_cpu_yield(void);
#endif

/* cpu_qconf()
* TRAP: HV_FAST_TRAP
Expand Down

0 comments on commit 6f5374c

Please sign in to comment.