Skip to content

Commit

Permalink
core: remove needless thread creation checks in kernel_init
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Aug 13, 2015
1 parent e6a9549 commit afd68d1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions core/kernel_init.c
Expand Up @@ -86,13 +86,15 @@ void kernel_init(void)

hwtimer_init();

if (thread_create(idle_stack, sizeof(idle_stack), THREAD_PRIORITY_IDLE, CREATE_WOUT_YIELD | CREATE_STACKTEST, idle_thread, NULL, idle_name) < 0) {
printf("kernel_init(): error creating idle task.\n");
}

if (thread_create(main_stack, sizeof(main_stack), THREAD_PRIORITY_MAIN, CREATE_WOUT_YIELD | CREATE_STACKTEST, main_trampoline, NULL, main_name) < 0) {
printf("kernel_init(): error creating main task.\n");
}
thread_create(idle_stack, sizeof(idle_stack),
THREAD_PRIORITY_IDLE,
CREATE_WOUT_YIELD | CREATE_STACKTEST,
idle_thread, NULL, idle_name);

thread_create(main_stack, sizeof(main_stack),
THREAD_PRIORITY_MAIN,
CREATE_WOUT_YIELD | CREATE_STACKTEST,
main_trampoline, NULL, main_name);

LOG_INFO("kernel_init(): jumping into first task...\n");

Expand Down

0 comments on commit afd68d1

Please sign in to comment.