mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
asm-generic: qrwlock: Document the spinlock fairness requirements
I could only find the fairness requirements documented as the C code, this calls them out in a comment just to be a bit more explicit. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
a8ad07e524
commit
493e2ba276
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
|||
/*
|
||||
* Queue read/write lock
|
||||
*
|
||||
* These use generic atomic and locking routines, but depend on a fair spinlock
|
||||
* implementation in order to be fair themselves. The implementation in
|
||||
* asm-generic/spinlock.h meets these requirements.
|
||||
*
|
||||
* (C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.
|
||||
*
|
||||
* Authors: Waiman Long <waiman.long@hp.com>
|
||||
|
|
Loading…
Reference in a new issue