Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f5374c9 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Add sun4v_cpu_yield().

parent 1bd0cd74
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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