Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
spinlock.h File Reference
#include <asm/barrier.h>
#include <asm/ldcw.h>
#include <asm/processor.h>
#include <asm/spinlock_types.h>

Go to the source code of this file.

Macros

#define arch_spin_lock(lock)   arch_spin_lock_flags(lock, 0)
 
#define arch_spin_unlock_wait(x)   do { cpu_relax(); } while (arch_spin_is_locked(x))
 
#define arch_read_lock_flags(lock, flags)   arch_read_lock(lock)
 
#define arch_write_lock_flags(lock, flags)   arch_write_lock(lock)
 
#define arch_spin_relax(lock)   cpu_relax()
 
#define arch_read_relax(lock)   cpu_relax()
 
#define arch_write_relax(lock)   cpu_relax()
 

Macro Definition Documentation

#define arch_read_lock_flags (   lock,
  flags 
)    arch_read_lock(lock)

Definition at line 191 of file spinlock.h.

#define arch_read_relax (   lock)    cpu_relax()

Definition at line 195 of file spinlock.h.

#define arch_spin_lock (   lock)    arch_spin_lock_flags(lock, 0)

Definition at line 15 of file spinlock.h.

#define arch_spin_relax (   lock)    cpu_relax()

Definition at line 194 of file spinlock.h.

#define arch_spin_unlock_wait (   x)    do { cpu_relax(); } while (arch_spin_is_locked(x))

Definition at line 16 of file spinlock.h.

#define arch_write_lock_flags (   lock,
  flags 
)    arch_write_lock(lock)

Definition at line 192 of file spinlock.h.

#define arch_write_relax (   lock)    cpu_relax()

Definition at line 196 of file spinlock.h.