summaryrefslogtreecommitdiff
path: root/include/linux/leds-bd2802.h
diff options
context:
space:
mode:
authorDavid Laight <David.Laight@ACULAB.COM>2023-12-29 23:56:03 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2023-12-30 21:25:51 +0300
commit563adbfc351b2af9f1406b809ba60b9f1673a882 (patch)
tree87fd8337c16d52d018244383e8b679864e443744 /include/linux/leds-bd2802.h
parent7c223098212957a1ecd8768e8e747ae2cf88e880 (diff)
downloadlinux-563adbfc351b2af9f1406b809ba60b9f1673a882.tar.xz
locking/osq_lock: Clarify osq_wait_next() calling convention
osq_wait_next() is passed 'prev' from osq_lock() and NULL from osq_unlock() but only needs the 'cpu' value to write to lock->tail. Just pass prev->cpu or OSQ_UNLOCKED_VAL instead. Should have no effect on the generated code since gcc manages to assume that 'prev != NULL' due to an earlier dereference. Signed-off-by: David Laight <david.laight@aculab.com> [ Changed 'old' to 'old_cpu' by request from Waiman Long - Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/leds-bd2802.h')
0 files changed, 0 insertions, 0 deletions