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/processor.h>

Go to the source code of this file.

Macros

#define ALT_SMP(smp, up)
 
#define SEV   ALT_SMP("sev", "nop")
 
#define WFE(cond)   ALT_SMP("wfe" cond, "nop")
 
#define arch_spin_unlock_wait(lock)   do { while (arch_spin_is_locked(lock)) cpu_relax(); } while (0)
 
#define arch_spin_lock_flags(lock, flags)   arch_spin_lock(lock)
 
#define arch_spin_is_contended   arch_spin_is_contended
 
#define arch_write_can_lock(x)   ((x)->lock == 0)
 
#define arch_read_can_lock(x)   ((x)->lock < 0x80000000)
 
#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 ALT_SMP (   smp,
  up 
)
Value:
"9998: " smp "\n" \
" .pushsection \".alt.smp.init\", \"a\"\n" \
" .long 9998b\n" \
" " up "\n" \
" .popsection\n"

Definition at line 14 of file spinlock.h.

#define arch_read_can_lock (   x)    ((x)->lock < 0x80000000)

Definition at line 283 of file spinlock.h.

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

Definition at line 285 of file spinlock.h.

#define arch_read_relax (   lock)    cpu_relax()

Definition at line 289 of file spinlock.h.

#define arch_spin_is_contended   arch_spin_is_contended

Definition at line 152 of file spinlock.h.

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

Definition at line 72 of file spinlock.h.

#define arch_spin_relax (   lock)    cpu_relax()

Definition at line 288 of file spinlock.h.

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

Definition at line 69 of file spinlock.h.

#define arch_write_can_lock (   x)    ((x)->lock == 0)

Definition at line 214 of file spinlock.h.

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

Definition at line 286 of file spinlock.h.

#define arch_write_relax (   lock)    cpu_relax()

Definition at line 290 of file spinlock.h.

#define SEV   ALT_SMP("sev", "nop")

Definition at line 41 of file spinlock.h.

#define WFE (   cond)    ALT_SMP("wfe" cond, "nop")

Definition at line 42 of file spinlock.h.