perf: Fix get_recursion_context()
[ Upstream commit ce0f17fc ] One should use in_serving_softirq() to detect SoftIRQ context. Fixes: 96f6d444 ("perf_counter: avoid recursion") Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20201030151955.120572175@infradead.orgSigned-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录