Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58262
b: refs/heads/master
c: c65cc87
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jul 9, 2007
1 parent 711bcfa commit ba0cc66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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: 0437e109e1841607f2988891eaa36c531c6aa6ac
refs/heads/master: c65cc8705256ad7524c97564b4fe3ca9782bf6d1
5 changes: 1 addition & 4 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1633,10 +1633,7 @@ static inline unsigned int task_cpu(const struct task_struct *p)
return task_thread_info(p)->cpu;
}

static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
{
task_thread_info(p)->cpu = cpu;
}
extern void set_task_cpu(struct task_struct *p, unsigned int cpu);

#else

Expand Down
6 changes: 6 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,12 @@ unsigned long weighted_cpuload(const int cpu)
}

#ifdef CONFIG_SMP

void set_task_cpu(struct task_struct *p, unsigned int cpu)
{
task_thread_info(p)->cpu = cpu;
}

struct migration_req {
struct list_head list;

Expand Down

0 comments on commit ba0cc66

Please sign in to comment.