mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
sched: add init_idle_bootup_task()
add the init_idle_bootup_task() callback to the bootup thread, unused at the moment. (CFS will use it to switch the scheduling class of the boot thread to the idle class) Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
4da1ce6d9c
commit
1df21055e3
3 changed files with 9 additions and 2 deletions
|
@ -436,15 +436,16 @@ static void noinline __init_refok rest_init(void)
|
|||
|
||||
/*
|
||||
* The boot idle thread must execute schedule()
|
||||
* at least one to get things moving:
|
||||
* at least once to get things moving:
|
||||
*/
|
||||
init_idle_bootup_task(current);
|
||||
preempt_enable_no_resched();
|
||||
schedule();
|
||||
preempt_disable();
|
||||
|
||||
/* Call into cpu_idle with preempt disabled */
|
||||
cpu_idle();
|
||||
}
|
||||
}
|
||||
|
||||
/* Check for early params. */
|
||||
static int __init do_early_param(char *param, char *val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue