mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
sparc64: Use CPU_POKE to resume idle cpu
Use CPU_POKE hypervisor call to resume idle cpu if supported. 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>
This commit is contained in:
committed by
David S. Miller
parent
28d43de741
commit
8536e02e91
@@ -77,8 +77,13 @@ void arch_cpu_idle(void)
|
||||
: "=&r" (pstate)
|
||||
: "i" (PSTATE_IE));
|
||||
|
||||
if (!need_resched() && !cpu_is_offline(smp_processor_id()))
|
||||
if (!need_resched() && !cpu_is_offline(smp_processor_id())) {
|
||||
sun4v_cpu_yield();
|
||||
/* If resumed by cpu_poke then we need to explicitly
|
||||
* call scheduler_ipi().
|
||||
*/
|
||||
scheduler_poke();
|
||||
}
|
||||
|
||||
/* Re-enable interrupts. */
|
||||
__asm__ __volatile__(
|
||||
|
||||
Reference in New Issue
Block a user