mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
DOCUMENTATION: Use newer DEFINE_SPINLOCK macro in docs.
Signed-off-by: Robert P. J. Day <[email protected]> Signed-off-by: Jesper Juhl <[email protected]>
This commit is contained in:
parent
dd89db1df9
commit
c0d1f29534
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue