Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
spinlock.c File Reference
#include <linux/kernel_stat.h>
#include <linux/spinlock.h>
#include <linux/debugfs.h>
#include <linux/log2.h>
#include <linux/gfp.h>
#include <asm/paravirt.h>
#include <xen/interface/xen.h>
#include <xen/events.h>
#include "xen-ops.h"
#include "debugfs.h"

Go to the source code of this file.

Data Structures

struct  xen_spinlock
 

Macros

#define TIMEOUT   (1 << 10)
 
#define ADD_STATS(elem, val)   do { (void)(val); } while(0)
 
#define inc_spinners(xl)   asm(LOCK_PREFIX " incb %0" : "+m" ((xl)->spinners) : : "memory");
 
#define dec_spinners(xl)   asm(LOCK_PREFIX " decb %0" : "+m" ((xl)->spinners) : : "memory");
 

Typedefs

typedef u8 xen_spinners_t
 

Functions

void __cpuinit xen_init_lock_cpu (int cpu)
 
void xen_uninit_lock_cpu (int cpu)
 
void __init xen_init_spinlocks (void)
 

Macro Definition Documentation

#define ADD_STATS (   elem,
  val 
)    do { (void)(val); } while(0)

Definition at line 101 of file spinlock.c.

#define dec_spinners (   xl)    asm(LOCK_PREFIX " decb %0" : "+m" ((xl)->spinners) : : "memory");

Definition at line 126 of file spinlock.c.

#define inc_spinners (   xl)    asm(LOCK_PREFIX " incb %0" : "+m" ((xl)->spinners) : : "memory");

Definition at line 124 of file spinlock.c.

#define TIMEOUT   (1 << 10)

Definition at line 100 of file spinlock.c.

Typedef Documentation

typedef u8 xen_spinners_t

Definition at line 123 of file spinlock.c.

Function Documentation

void __cpuinit xen_init_lock_cpu ( int  cpu)

Definition at line 363 of file spinlock.c.

void __init xen_init_spinlocks ( void  )

Definition at line 389 of file spinlock.c.

void xen_uninit_lock_cpu ( int  cpu)

Definition at line 384 of file spinlock.c.