mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
perf: Fix get_recursion_context()
[ Upstream commitce0f17fc93
] One should use in_serving_softirq() to detect SoftIRQ context. Fixes:96f6d44443
("perf_counter: avoid recursion") Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20201030151955.120572175@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
70867a9dbf
commit
09b0d47b79
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ static inline int get_recursion_context(int *recursion)
|
|||
rctx = 3;
|
||||
else if (in_irq())
|
||||
rctx = 2;
|
||||
else if (in_softirq())
|
||||
else if (in_serving_softirq())
|
||||
rctx = 1;
|
||||
else
|
||||
rctx = 0;
|
||||
|
|
Loading…
Reference in a new issue