Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20324
b: refs/heads/master
c: d6077cb
h: refs/heads/master
v: v3
  • Loading branch information
Chen, Kenneth W authored and Linus Torvalds committed Feb 15, 2006
1 parent 465766c commit d9ef6f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f822566165dd46ff5de9bf895cfa6c51f53bb0c4
refs/heads/master: d6077cb80cde4506720f9165eba99ee07438513f
5 changes: 1 addition & 4 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 1 addition & 9 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d9ef6f5

Please sign in to comment.