mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 03:54:02 +00:00
sched: uninline set_task_cpu()
uninline set_task_cpu(): CFS will add more code to it. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
0437e109e1
commit
c65cc87052
2 changed files with 7 additions and 4 deletions
|
@ -1633,10 +1633,7 @@ static inline unsigned int task_cpu(const struct task_struct *p)
|
||||||
return task_thread_info(p)->cpu;
|
return task_thread_info(p)->cpu;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
|
extern void set_task_cpu(struct task_struct *p, unsigned int cpu);
|
||||||
{
|
|
||||||
task_thread_info(p)->cpu = cpu;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
@ -1111,6 +1111,12 @@ unsigned long weighted_cpuload(const int cpu)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
|
|
||||||
|
void set_task_cpu(struct task_struct *p, unsigned int cpu)
|
||||||
|
{
|
||||||
|
task_thread_info(p)->cpu = cpu;
|
||||||
|
}
|
||||||
|
|
||||||
struct migration_req {
|
struct migration_req {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue