blob: bbb6c7316341f806dc3cb3a5bdce52cbb28de2a3 [file] [log] [blame]
Jeremy Fitzhardinged5de8842008-07-23 13:28:58 -07001/*
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>
Jeremy Fitzhardinge96f853e2013-08-09 19:51:58 +05307#include <linux/jump_label.h>
Jeremy Fitzhardinged5de8842008-07-23 13:28:58 -07008
9#include <asm/paravirt.h>
10
11struct pv_lock_ops pv_lock_ops = {
12#ifdef CONFIG_SMP
Jeremy Fitzhardinge354714d2013-08-09 19:51:55 +053013 .lock_spinning = __PV_IS_CALLEE_SAVE(paravirt_nop),
Jeremy Fitzhardinge545ac132013-08-09 19:51:49 +053014 .unlock_kick = paravirt_nop,
Jeremy Fitzhardinged5de8842008-07-23 13:28:58 -070015#endif
16};
Jeremy Fitzhardinge25258ef2008-08-20 11:31:07 -070017EXPORT_SYMBOL(pv_lock_ops);
Jeremy Fitzhardinged5de8842008-07-23 13:28:58 -070018
Jeremy Fitzhardinge96f853e2013-08-09 19:51:58 +053019struct static_key paravirt_ticketlocks_enabled = STATIC_KEY_INIT_FALSE;
20EXPORT_SYMBOL(paravirt_ticketlocks_enabled);