~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to kernel/generic/include/synch/spinlock.h

  • Committer: Martin Decky
  • Date: 2012-06-15 17:07:30 UTC
  • Revision ID: martin@decky.cz-20120615170730-aj8q3dd5n4nvce2a
cstyle

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
 
175
175
#define spinlock_initialize(lock, name)
176
176
 
177
 
#define spinlock_lock(lock)     preemption_disable()
178
 
#define spinlock_trylock(lock)  (preemption_disable(), 1)
179
 
#define spinlock_unlock(lock)   preemption_enable()
180
 
#define spinlock_locked(lock)   1
181
 
#define spinlock_unlocked(lock) 1
 
177
#define spinlock_lock(lock)      preemption_disable()
 
178
#define spinlock_trylock(lock)   (preemption_disable(), 1)
 
179
#define spinlock_unlock(lock)    preemption_enable()
 
180
#define spinlock_locked(lock)    1
 
181
#define spinlock_unlocked(lock)  1
182
182
 
183
183
#define DEADLOCK_PROBE_INIT(pname)
184
184
#define DEADLOCK_PROBE(pname, value)