From d9ef6f561bad6d588748a124db97947fc1c331be Mon Sep 17 00:00:00 2001 From: "Chen, Kenneth W" Date: Tue, 14 Feb 2006 13:53:10 -0800 Subject: [PATCH] --- yaml --- r: 20324 b: refs/heads/master c: d6077cb80cde4506720f9165eba99ee07438513f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/sched.h | 5 +---- trunk/kernel/sched.c | 10 +--------- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/[refs] b/[refs] index a3120ca81c73..c7fdd4603439 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f822566165dd46ff5de9bf895cfa6c51f53bb0c4 +refs/heads/master: d6077cb80cde4506720f9165eba99ee07438513f diff --git a/trunk/include/linux/sched.h b/trunk/include/linux/sched.h index 9c1da0269a18..b6f51e3a38ec 100644 --- a/trunk/include/linux/sched.h +++ b/trunk/include/linux/sched.h @@ -697,11 +697,8 @@ struct task_struct { int lock_depth; /* BKL lock depth */ -#if defined(CONFIG_SMP) - int last_waker_cpu; /* CPU that last woke this task up */ -#if defined(__ARCH_WANT_UNLOCKED_CTXSW) +#if defined(CONFIG_SMP) && defined(__ARCH_WANT_UNLOCKED_CTXSW) int oncpu; -#endif #endif int prio, static_prio; struct list_head run_list; diff --git a/trunk/kernel/sched.c b/trunk/kernel/sched.c index 87d93be336a1..66d957227de9 100644 --- a/trunk/kernel/sched.c +++ b/trunk/kernel/sched.c @@ -1204,9 +1204,6 @@ static int try_to_wake_up(task_t *p, unsigned int state, int sync) } } - if (p->last_waker_cpu != this_cpu) - goto out_set_cpu; - if (unlikely(!cpu_isset(this_cpu, p->cpus_allowed))) goto out_set_cpu; @@ -1277,8 +1274,6 @@ static int try_to_wake_up(task_t *p, unsigned int state, int sync) cpu = task_cpu(p); } - p->last_waker_cpu = this_cpu; - out_activate: #endif /* CONFIG_SMP */ if (old_state == TASK_UNINTERRUPTIBLE) { @@ -1360,12 +1355,9 @@ void fastcall sched_fork(task_t *p, int clone_flags) #ifdef CONFIG_SCHEDSTATS memset(&p->sched_info, 0, sizeof(p->sched_info)); #endif -#if defined(CONFIG_SMP) - p->last_waker_cpu = cpu; -#if defined(__ARCH_WANT_UNLOCKED_CTXSW) +#if defined(CONFIG_SMP) && defined(__ARCH_WANT_UNLOCKED_CTXSW) p->oncpu = 0; #endif -#endif #ifdef CONFIG_PREEMPT /* Want to start with kernel preemption disabled. */ task_thread_info(p)->preempt_count = 1;