File: paravirt-spinlocks.c

package info (click to toggle)
linux 3.12.9-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 652,128 kB
  • sloc: ansic: 11,461,117; asm: 271,295; perl: 52,892; xml: 46,562; makefile: 28,674; sh: 6,008; python: 5,389; cpp: 5,117; yacc: 3,571; lex: 2,044; awk: 716; pascal: 231; lisp: 218; sed: 30
file content (20 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Split spinlock implementation out into its own file, so it can be
 * compiled in a FTRACE-compatible way.
 */
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/jump_label.h>

#include <asm/paravirt.h>

struct pv_lock_ops pv_lock_ops = {
#ifdef CONFIG_SMP
	.lock_spinning = __PV_IS_CALLEE_SAVE(paravirt_nop),
	.unlock_kick = paravirt_nop,
#endif
};
EXPORT_SYMBOL(pv_lock_ops);

struct static_key paravirt_ticketlocks_enabled = STATIC_KEY_INIT_FALSE;
EXPORT_SYMBOL(paravirt_ticketlocks_enabled);