diff options
author | Bart Van Assche <[email protected]> | 2024-09-12 15:39:55 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-09-13 07:36:02 +0200 |
commit | e837d833a13461c10f265a65ce6612e6dd43e76f (patch) | |
tree | 30aabfca8acbe44a18ef0a6cb71e71022843d93c /drivers/fpga/fpga-bridge.c | |
parent | 96f8052822e03c6f49b6b28fc1d6e5e0522ecbb9 (diff) |
locking/mutex: Introduce mutex_init_with_key()
The following pattern occurs 5 times in kernel drivers:
lockdep_register_key(key);
__mutex_init(mutex, name, key);
In several cases the 'name' argument matches #mutex. Hence, introduce
the mutex_init_with_key() macro. This macro derives the 'name' argument
from the 'mutex' argument.
Suggested-by: Andy Shevchenko <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions