Jeremy Fitzhardinge | d5de884 | 2008-07-23 13:28:58 -0700 | [diff] [blame] | 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> |
Jeremy Fitzhardinge | 96f853e | 2013-08-09 19:51:58 +0530 | [diff] [blame] | 7 | #include <linux/jump_label.h> |
Jeremy Fitzhardinge | d5de884 | 2008-07-23 13:28:58 -0700 | [diff] [blame] | 8 | |
| 9 | #include <asm/paravirt.h> |
| 10 | |
| 11 | struct pv_lock_ops pv_lock_ops = { |
| 12 | #ifdef CONFIG_SMP |
Jeremy Fitzhardinge | 354714d | 2013-08-09 19:51:55 +0530 | [diff] [blame] | 13 | .lock_spinning = __PV_IS_CALLEE_SAVE(paravirt_nop), |
Jeremy Fitzhardinge | 545ac13 | 2013-08-09 19:51:49 +0530 | [diff] [blame] | 14 | .unlock_kick = paravirt_nop, |
Jeremy Fitzhardinge | d5de884 | 2008-07-23 13:28:58 -0700 | [diff] [blame] | 15 | #endif |
| 16 | }; |
Jeremy Fitzhardinge | 25258ef | 2008-08-20 11:31:07 -0700 | [diff] [blame] | 17 | EXPORT_SYMBOL(pv_lock_ops); |
Jeremy Fitzhardinge | d5de884 | 2008-07-23 13:28:58 -0700 | [diff] [blame] | 18 | |
Jeremy Fitzhardinge | 96f853e | 2013-08-09 19:51:58 +0530 | [diff] [blame] | 19 | struct static_key paravirt_ticketlocks_enabled = STATIC_KEY_INIT_FALSE; |
| 20 | EXPORT_SYMBOL(paravirt_ticketlocks_enabled); |