core: remove needless thread creation checks in kernel_init
This commit is contained in:
parent
e6a9549d16
commit
afd68d1f31
@ -86,13 +86,15 @@ void kernel_init(void)
|
|||||||
|
|
||||||
hwtimer_init();
|
hwtimer_init();
|
||||||
|
|
||||||
if (thread_create(idle_stack, sizeof(idle_stack), THREAD_PRIORITY_IDLE, CREATE_WOUT_YIELD | CREATE_STACKTEST, idle_thread, NULL, idle_name) < 0) {
|
thread_create(idle_stack, sizeof(idle_stack),
|
||||||
printf("kernel_init(): error creating idle task.\n");
|
THREAD_PRIORITY_IDLE,
|
||||||
}
|
CREATE_WOUT_YIELD | CREATE_STACKTEST,
|
||||||
|
idle_thread, NULL, idle_name);
|
||||||
|
|
||||||
if (thread_create(main_stack, sizeof(main_stack), THREAD_PRIORITY_MAIN, CREATE_WOUT_YIELD | CREATE_STACKTEST, main_trampoline, NULL, main_name) < 0) {
|
thread_create(main_stack, sizeof(main_stack),
|
||||||
printf("kernel_init(): error creating main task.\n");
|
THREAD_PRIORITY_MAIN,
|
||||||
}
|
CREATE_WOUT_YIELD | CREATE_STACKTEST,
|
||||||
|
main_trampoline, NULL, main_name);
|
||||||
|
|
||||||
LOG_INFO("kernel_init(): jumping into first task...\n");
|
LOG_INFO("kernel_init(): jumping into first task...\n");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user