Skip to content
Commit 672a424a authored by Yongxin Liu's avatar Yongxin Liu Committed by Bruce Ashfield
Browse files

ptrace: Remove unmatched preempt_count() issue in ptrace_stop



Upstream commit 53da1d94 ("fix ptrace slowness") introduced
preempt_disable() and preempt_enable_no_resched() in function
ptrace_stop(), and they should be used together.

In RT kernel, commit 500d5c546e46 ("signal: Revert ptrace preempt
magic") reverted commit 53da1d94. To make Yocto RT kernel the
same as upstream RT kernel, remove preempt_enable_no_resched(), in
stread of adding preempt_disable().

Signed-off-by: default avatarYongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent b26332b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment