2 * Split spinlock implementation out into its own file, so it can be
3 * compiled in a FTRACE-compatible way.
5 #include <linux/spinlock.h>
6 #include <linux/module.h>
8 #include <asm/paravirt.h>
11 default_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags)
16 struct pv_lock_ops pv_lock_ops = {
18 .spin_is_locked = __ticket_spin_is_locked,
19 .spin_is_contended = __ticket_spin_is_contended,
21 .spin_lock = __ticket_spin_lock,
22 .spin_lock_flags = default_spin_lock_flags,
23 .spin_trylock = __ticket_spin_trylock,
24 .spin_unlock = __ticket_spin_unlock,
27 EXPORT_SYMBOL(pv_lock_ops);