diff options
| author | Shakeel Butt <[email protected]> | 2022-03-22 14:40:07 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-03-22 15:57:02 -0700 |
| commit | 086f694a75e1a283a11f9afa7bae258f30892b81 (patch) | |
| tree | 831e3fb24ce25a92ffd578a09b3274dd28a3d1b4 /tools/perf/scripts/python/flamegraph.py | |
| parent | 4bfa8ada803af1d073c76b43d079eee72a1d442a (diff) | |
memcg: replace in_interrupt() with !in_task()
Replace the deprecated in_interrupt() with !in_task() because
in_interrupt() returns true for BH disabled even if the call happens in
the task context. in_task() is the right interface to differentiate
task context from NMI, hard IRQ and softirq contexts.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Shakeel Butt <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Vasily Averin <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Roman Gushchin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions