diff options
author | David Laight <David.Laight@ACULAB.COM> | 2023-12-29 20:56:03 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-12-30 10:25:51 -0800 |
commit | 563adbfc351b2af9f1406b809ba60b9f1673a882 (patch) | |
tree | 87fd8337c16d52d018244383e8b679864e443744 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 7c223098212957a1ecd8768e8e747ae2cf88e880 (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 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions