aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga
diff options
context:
space:
mode:
authorWaiman Long <[email protected]>2021-03-16 11:31:16 -0400
committerIngo Molnar <[email protected]>2021-03-17 09:56:44 +0100
commit5de2055d31ea88fd9ae9709ac95c372a505a60fa (patch)
tree627aa968324f0a86a045733abb7721a4f9aca914 /include/linux/fpga
parent1df27313f50a57497c1faeb6a6ae4ca939c85a7d (diff)
locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling
The use_ww_ctx flag is passed to mutex_optimistic_spin(), but the function doesn't use it. The frequent use of the (use_ww_ctx && ww_ctx) combination is repetitive. In fact, ww_ctx should not be used at all if !use_ww_ctx. Simplify ww_mutex code by dropping use_ww_ctx from mutex_optimistic_spin() an clear ww_ctx if !use_ww_ctx. In this way, we can replace (use_ww_ctx && ww_ctx) by just (ww_ctx). Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Davidlohr Bueso <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/fpga')
0 files changed, 0 insertions, 0 deletions