diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-30 05:33:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-30 05:33:45 -0700 |
commit | e746c9947b7ff5dc6628de2d388b9261b4ec3dd5 (patch) | |
tree | 9541b681fd4184b78733820672067f766a60f89e /lib | |
parent | 9056b5593be70c6326360d92483cd27a7ca64998 (diff) | |
download | history-e746c9947b7ff5dc6628de2d388b9261b4ec3dd5.tar.gz |
Make "atomic_dec_and_lock()" a macro.
We rename the actual architecture-specific low-level implementation
to have a prepended underscore: "_atomic_dec_and_lock()".
This extra macro indirection is so that we can make the macro do
the lock context counting. That will be the next patch.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dec_and_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dec_and_lock.c b/lib/dec_and_lock.c index f84d1608bef55e..6658d81e183651 100644 --- a/lib/dec_and_lock.c +++ b/lib/dec_and_lock.c @@ -27,7 +27,7 @@ */ #ifndef ATOMIC_DEC_AND_LOCK -int atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock) +int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock) { spin_lock(lock); if (atomic_dec_and_test(atomic)) @@ -36,5 +36,5 @@ int atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock) return 0; } -EXPORT_SYMBOL(atomic_dec_and_lock); +EXPORT_SYMBOL(_atomic_dec_and_lock); #endif |