Changeset c842f04 in mainline for include/synch/spinlock.h
- Timestamp:
- 2005-09-01T09:19:56Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3b9572
- Parents:
- f9447155
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/synch/spinlock.h
rf9447155 rc842f04 32 32 #include <arch/types.h> 33 33 #include <typedefs.h> 34 #include <preemption.h> 34 35 35 36 #ifdef __SMP__ … … 49 50 50 51 #define spinlock_initialize(x) 51 #define spinlock_lock(x) 52 #define spinlock_trylock(x) 153 #define spinlock_unlock(x) 52 #define spinlock_lock(x) preemption_disable() 53 #define spinlock_trylock(x) (preemption_disable(), 1) 54 #define spinlock_unlock(x) preemption_enable() 54 55 55 56 #endif
Note:
See TracChangeset
for help on using the changeset viewer.