Skip to content
Commit 4ce72a2c authored by Li Zefan's avatar Li Zefan Committed by Ingo Molnar
Browse files

sched: add CONFIG_SMP consistency



a patch from Henrik Austad did this:

>> Do not declare select_task_rq as part of sched_class when CONFIG_SMP is
>> not set.

Peter observed:

> While a proper cleanup, could you do it by re-arranging the methods so
> as to not create an additional ifdef?

Do not declare select_task_rq and some other methods as part of sched_class
when CONFIG_SMP is not set.

Also gather those methods to avoid CONFIG_SMP mess.

Idea-by: default avatarHenrik Austad <henrik.austad@gmail.com>
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Acked-by: default avatarPeter Zijlstra <peterz@infradead.org>
Acked-by: default avatarHenrik Austad <henrik@austad.us>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0c4b83da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment