diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2008-04-21 22:44:50 +0000 |
---|---|---|
committer | Jesper Juhl <juhl@hera.kernel.org> | 2008-04-21 22:44:50 +0000 |
commit | c0d1f29534f2bd6c5992831eb0f648522e9b0204 (patch) | |
tree | 563b800789c2c99527b0b681efeb78fcf938da75 /Documentation/DocBook/kernel-locking.tmpl | |
parent | dd89db1df98003fadafa711ab8bc497aaf92980a (diff) | |
download | kernel_samsung_espresso10-c0d1f29534f2bd6c5992831eb0f648522e9b0204.zip kernel_samsung_espresso10-c0d1f29534f2bd6c5992831eb0f648522e9b0204.tar.gz kernel_samsung_espresso10-c0d1f29534f2bd6c5992831eb0f648522e9b0204.tar.bz2 |
DOCUMENTATION: Use newer DEFINE_SPINLOCK macro in docs.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Diffstat (limited to 'Documentation/DocBook/kernel-locking.tmpl')
-rw-r--r-- | Documentation/DocBook/kernel-locking.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/DocBook/kernel-locking.tmpl b/Documentation/DocBook/kernel-locking.tmpl index 2e9d6b4..22ebd27 100644 --- a/Documentation/DocBook/kernel-locking.tmpl +++ b/Documentation/DocBook/kernel-locking.tmpl @@ -854,7 +854,7 @@ The change is shown below, in standard patch format: the }; -static DEFINE_MUTEX(cache_lock); -+static spinlock_t cache_lock = SPIN_LOCK_UNLOCKED; ++static DEFINE_SPINLOCK(cache_lock); static LIST_HEAD(cache); static unsigned int cache_num = 0; #define MAX_CACHE_SIZE 10 @@ -1238,7 +1238,7 @@ Here is the "lock-per-object" implementation: - int popularity; }; - static spinlock_t cache_lock = SPIN_LOCK_UNLOCKED; + static DEFINE_SPINLOCK(cache_lock); @@ -77,6 +84,7 @@ obj->id = id; obj->popularity = 0; |