mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
![Nicholas Piggin](/assets/img/avatar_default.png)
This implements the generic paravirt qspinlocks using H_PROD and H_CONFER to kick and wait. This uses an un-directed yield to any CPU rather than the directed yield to a pre-empted lock holder that paravirtualised simple spinlocks use, that requires no kick hcall. This is something that could be investigated and improved in future. Performance results can be found in the commit which added queued spinlocks. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200724131423.1362108-5-npiggin@gmail.com
7 lines
221 B
C
7 lines
221 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _ASM_POWERPC_QSPINLOCK_PARAVIRT_H
|
|
#define _ASM_POWERPC_QSPINLOCK_PARAVIRT_H
|
|
|
|
EXPORT_SYMBOL(__pv_queued_spin_unlock);
|
|
|
|
#endif /* _ASM_POWERPC_QSPINLOCK_PARAVIRT_H */
|