aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index e29a97235f26..51fb72b5af79 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2708,14 +2708,17 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
2708 int cpu, success = 0; 2708 int cpu, success = 0;
2709 2709
2710 if (is_realtime(p)) { 2710 if (is_realtime(p)) {
2711 //WARN_ON(1);
2712 TRACE_TASK(p, "try_to_wake_up() state:%d\n", p->state); 2711 TRACE_TASK(p, "try_to_wake_up() state:%d\n", p->state);
2713 } 2712 }
2714 2713
2715 smp_wmb(); 2714 smp_wmb();
2716 raw_spin_lock_irqsave(&p->pi_lock, flags); 2715 raw_spin_lock_irqsave(&p->pi_lock, flags);
2717 if (!(p->state & state)) 2716 if (!(p->state & state)) {
2717 if (is_realtime(p)) {
2718 TRACE_TASK(p, "try_to_wake_up() masked out, mask:%x\n", state);
2719 }
2718 goto out; 2720 goto out;
2721 }
2719 2722
2720 success = 1; /* we're going to change ->state */ 2723 success = 1; /* we're going to change ->state */
2721 cpu = task_cpu(p); 2724 cpu = task_cpu(p);