aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc64/kernel/entry.S9
-rw-r--r--include/asm-sparc64/hypervisor.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/entry.S b/arch/sparc64/kernel/entry.S
index bd332e41532f..9f3048e64e84 100644
--- a/arch/sparc64/kernel/entry.S
+++ b/arch/sparc64/kernel/entry.S
@@ -1786,3 +1786,12 @@ sun4v_cpu_qconf:
1786 ta HV_FAST_TRAP 1786 ta HV_FAST_TRAP
1787 retl 1787 retl
1788 nop 1788 nop
1789
1790 /* returns %o0: status
1791 */
1792 .globl sun4v_cpu_yield
1793sun4v_cpu_yield:
1794 mov HV_FAST_CPU_YIELD, %o5
1795 ta HV_FAST_TRAP
1796 retl
1797 nop
diff --git a/include/asm-sparc64/hypervisor.h b/include/asm-sparc64/hypervisor.h
index cd5fbcd9556e..726e2ea03ce3 100644
--- a/include/asm-sparc64/hypervisor.h
+++ b/include/asm-sparc64/hypervisor.h
@@ -258,6 +258,9 @@
258 */ 258 */
259#define HV_FAST_CPU_YIELD 0x12 259#define HV_FAST_CPU_YIELD 0x12
260 260
261#ifndef __ASSEMBLY__
262extern unsigned long sun4v_cpu_yield(void);
263#endif
261 264
262/* cpu_qconf() 265/* cpu_qconf()
263 * TRAP: HV_FAST_TRAP 266 * TRAP: HV_FAST_TRAP