mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -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
|
|
@ -1097,7 +1097,7 @@ lock themselves, if required. Drivers that explicitly used the
|
|||
io_request_lock for serialization need to be modified accordingly.
|
||||
Usually it's as easy as adding a global lock:
|
||||
|
||||
static spinlock_t my_driver_lock = SPIN_LOCK_UNLOCKED;
|
||||
static DEFINE_SPINLOCK(my_driver_lock);
|
||||
|
||||
and passing the address to that lock to blk_init_queue().
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue