diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-03-26 16:29:43 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-03-29 15:57:04 +0200 |
commit | c2c360ed7f28fd6b7eb7e39e70af2d2ae405f466 (patch) | |
tree | 0850b7991410c54c110d923f274ef7f2ab908fb3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 82cd5b1039e26b1b1254886464991e34de439ac5 (diff) |
locking/rtmutex: Restrict the trylock WARN_ON() to debug
The warning as written is expensive and not really required for a
production kernel. Make it depend on rt mutex debugging and use !in_task()
for the condition which generates far better code and gives the same
answer.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210326153944.436565064@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions