Commit | Line | Data |
---|---|---|
d5de8841 JF |
1 | /* |
2 | * Split spinlock implementation out into its own file, so it can be | |
3 | * compiled in a FTRACE-compatible way. | |
4 | */ | |
5 | #include <linux/spinlock.h> | |
6 | #include <linux/module.h> | |
96f853ea | 7 | #include <linux/jump_label.h> |
d5de8841 JF |
8 | |
9 | #include <asm/paravirt.h> | |
10 | ||
11 | struct pv_lock_ops pv_lock_ops = { | |
12 | #ifdef CONFIG_SMP | |
354714dd | 13 | .lock_spinning = __PV_IS_CALLEE_SAVE(paravirt_nop), |
545ac138 | 14 | .unlock_kick = paravirt_nop, |
d5de8841 JF |
15 | #endif |
16 | }; | |
25258ef7 | 17 | EXPORT_SYMBOL(pv_lock_ops); |
d5de8841 | 18 | |
96f853ea JF |
19 | struct static_key paravirt_ticketlocks_enabled = STATIC_KEY_INIT_FALSE; |
20 | EXPORT_SYMBOL(paravirt_ticketlocks_enabled); |