diff options
| author | Peter Zijlstra <[email protected]> | 2010-05-31 16:13:25 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-06-01 07:27:17 +0000 |
| commit | 02f726949f2be0967aa4871dd4e47d3967779b26 (patch) | |
| tree | cca72d10f5db4d5d2b37c0d3fb9c424fbef051ca /security/selinux/hooks.c | |
| parent | sched: Fix wake_affine() vs RT tasks (diff) | |
| download | kernel-02f726949f2be0967aa4871dd4e47d3967779b26.tar.gz kernel-02f726949f2be0967aa4871dd4e47d3967779b26.zip | |
sched, trace: Fix sched_switch() prev_state argument
For CONFIG_PREEMPT=y kernels the sched_switch(.prev_state) argument isn't
useful because we can get preempted with current->state != TASK_RUNNING
without actually getting removed from the runqueue.
Cure this by treating all preempted tasks as runnable from the tracer's
point of view.
Signed-off-by: Peter Zijlstra <[email protected]>
Cautiously-acked-by: Steven Rostedt <[email protected]>
LKML-Reference: <1275322715.27810.23323.camel@twins>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
