diff options
author | Vijay Kumar <vijay.ac.kumar@oracle.com> | 2017-07-21 10:23:56 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-09 22:15:10 -0700 |
commit | 28d43de741cc67a9d8748de7dcb6c5f54cfa669c (patch) | |
tree | 5a45e75d3d4b7a392a6b68d9ae69c27dd9071159 /arch/sparc/kernel | |
parent | 99274b818a5dc7c3226866970a0cec0d40ed5f0f (diff) | |
download | op-kernel-dev-28d43de741cc67a9d8748de7dcb6c5f54cfa669c.zip op-kernel-dev-28d43de741cc67a9d8748de7dcb6c5f54cfa669c.tar.gz |
sparc64: Add a new hypercall CPU_POKE
This adds a new hypercall CPU_POKE for quickly waking up an idle CPU.
CPU_POKE should only be sent to valid non-local CPUs.
Signed-off-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Reviewed-by: Anthony Yznaga <anthony.yznaga@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/hvcalls.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sparc/kernel/hvcalls.S b/arch/sparc/kernel/hvcalls.S index 4116ee5..e57007f 100644 --- a/arch/sparc/kernel/hvcalls.S +++ b/arch/sparc/kernel/hvcalls.S @@ -106,6 +106,17 @@ ENTRY(sun4v_cpu_yield) nop ENDPROC(sun4v_cpu_yield) + /* %o0: cpuid + * + * returns %o0: status + */ +ENTRY(sun4v_cpu_poke) + mov HV_FAST_CPU_POKE, %o5 + ta HV_FAST_TRAP + retl + nop +ENDPROC(sun4v_cpu_poke) + /* %o0: type * %o1: queue paddr * %o2: num queue entries |