diff -ru linux-2.5.59/include/linux/sched.h sched-2.5.59-02/include/linux/sched.h --- linux-2.5.59/include/linux/sched.h Thu Jan 16 18:21:38 2003 +++ sched-2.5.59-02/include/linux/sched.h Tue Feb 4 00:30:05 2003 @@ -293,7 +293,7 @@ prio_array_t *array; unsigned long sleep_avg; - unsigned long sleep_timestamp; + unsigned long last_run; unsigned long policy; unsigned long cpus_allowed; diff -ru linux-2.5.59/kernel/fork.c sched-2.5.59-02/kernel/fork.c --- linux-2.5.59/kernel/fork.c Thu Jan 16 18:21:38 2003 +++ sched-2.5.59-02/kernel/fork.c Tue Feb 4 00:30:06 2003 @@ -876,7 +876,7 @@ */ p->first_time_slice = 1; current->time_slice >>= 1; - p->sleep_timestamp = jiffies; + p->last_run = jiffies; if (!current->time_slice) { /* * This case is rare, it happens when the parent has only diff -ru linux-2.5.59/kernel/sched.c sched-2.5.59-02/kernel/sched.c --- linux-2.5.59/kernel/sched.c Thu Jan 16 18:22:29 2003 +++ sched-2.5.59-02/kernel/sched.c Tue Feb 4 00:30:05 2003 @@ -324,14 +324,14 @@ */ static inline void activate_task(task_t *p, runqueue_t *rq) { - unsigned long sleep_time = jiffies - p->sleep_timestamp; + unsigned long sleep_time = jiffies - p->last_run; prio_array_t *array = rq->active; if (!rt_task(p) && sleep_time) { /* * This code gives a bonus to interactive tasks. We update * an 'average sleep time' value here, based on - * sleep_timestamp. The more time a task spends sleeping, + * ->last_run. The more time a task spends sleeping, * the higher the average gets - and the higher the priority * boost gets as well. */ @@ -975,7 +975,7 @@ */ #define CAN_MIGRATE_TASK(p,rq,this_cpu) \ - ((jiffies - (p)->sleep_timestamp > cache_decay_ticks) && \ + ((jiffies - (p)->last_run > cache_decay_ticks) && \ !task_running(rq, p) && \ ((p)->cpus_allowed & (1UL << (this_cpu)))) @@ -1160,7 +1160,7 @@ rq = this_rq(); release_kernel_lock(prev); - prev->sleep_timestamp = jiffies; + prev->last_run = jiffies; spin_lock_irq(&rq->lock); /*