summaryrefslogtreecommitdiff
path: root/kernel/delayacct.c
diff options
context:
space:
mode:
authorDavid Laight <David.Laight@ACULAB.COM>2023-12-29 20:56:03 +0000
committerLinus Torvalds <torvalds@linux-foundation.org>2023-12-30 10:25:51 -0800
commit563adbfc351b2af9f1406b809ba60b9f1673a882 (patch)
tree87fd8337c16d52d018244383e8b679864e443744 /kernel/delayacct.c
parent7c223098212957a1ecd8768e8e747ae2cf88e880 (diff)
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 'kernel/delayacct.c')
0 files changed, 0 insertions, 0 deletions