Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c65cc870 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: uninline set_task_cpu()



uninline set_task_cpu(): CFS will add more code to it.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0437e109
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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

+6 −0
Original line number Diff line number Diff line
@@ -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;