more clean up in contextswitch
authorRené Sechting <sechting@mailbox.tu-berlin.de>
Wed, 20 Nov 2013 14:40:31 +0000 (15:40 +0100)
committerRené Sechting <sechting@mailbox.tu-berlin.de>
Wed, 20 Nov 2013 14:40:31 +0000 (15:40 +0100)
...

framework/os/linux/os.c
kernel/sched.new/sched.h

index af4e410..9576c05 100644 (file)
@@ -58,7 +58,6 @@ void os_dispatch(fw_task_t *task)
        rq->skip_clock_update = 0;
        rq->nr_switches++;
        rq->curr = next;
-       rq->prev = prev;
 
        if(prev != next){
                context_switch(rq,prev,next);
index 4e3a85d..105adad 100644 (file)
@@ -28,7 +28,7 @@ struct rq {
         */
        unsigned long nr_uninterruptible;
 
-       struct task_struct *curr, *idle, *stop, *prev;
+       struct task_struct *curr, *idle, *stop;
 
        struct mm_struct *prev_mm;