]> git.karo-electronics.de Git - linux-beck.git/blobdiff - kernel/sched.c
sched, trace: update trace_sched_wakeup()
[linux-beck.git] / kernel / sched.c
index ac5a70a87d1ecdb43f6da2e3fe5b074c2deda375..dcb39bc88f6ccc75bd7c1e8aee2847b95fed6b9a 100644 (file)
@@ -2324,7 +2324,7 @@ out_activate:
        success = 1;
 
 out_running:
-       trace_sched_wakeup(rq, p);
+       trace_sched_wakeup(rq, p, success);
        check_preempt_curr(rq, p, sync);
 
        p->state = TASK_RUNNING;
@@ -6595,7 +6595,9 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
                        req = list_entry(rq->migration_queue.next,
                                         struct migration_req, list);
                        list_del_init(&req->list);
+                       spin_unlock_irq(&rq->lock);
                        complete(&req->done);
+                       spin_lock_irq(&rq->lock);
                }
                spin_unlock_irq(&rq->lock);
                break;