Skip to content

Commit 493e2ba

Browse files
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>
1 parent a8ad07e commit 493e2ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/asm-generic/qrwlock.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/*
33
* Queue read/write lock
44
*
5+
* These use generic atomic and locking routines, but depend on a fair spinlock
6+
* implementation in order to be fair themselves. The implementation in
7+
* asm-generic/spinlock.h meets these requirements.
8+
*
59
* (C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.
610
*
711
* Authors: Waiman Long <waiman.long@hp.com>

0 commit comments

Comments
 (0)