Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    r52c60b6 r98000fb  
    6666#include <ipc/ipc.h>
    6767#include <debug.h>
    68 #include <str.h>
    69 #include <sysinfo/stats.h>
     68#include <string.h>
    7069
    7170#ifdef CONFIG_SMP
     
    9594void kinit(void *arg)
    9695{
     96
     97#if defined(CONFIG_SMP) || defined(CONFIG_KCONSOLE)
    9798        thread_t *thread;
     99#endif
    98100       
    99101        /*
     
    121123                } else
    122124                        panic("Unable to create kmp thread.");
    123                
    124125                thread_join(thread);
    125126                thread_detach(thread);
     
    150151        arch_post_smp_init();
    151152       
    152         /* Start thread computing system load */
    153         thread = thread_create(kload, NULL, TASK, 0, "kload", false);
    154         if (thread != NULL)
    155                 thread_ready(thread);
    156         else
    157                 printf("Unable to create kload thread\n");
    158        
    159153#ifdef CONFIG_KCONSOLE
    160154        if (stdin) {
     
    190184               
    191185                char namebuf[TASK_NAME_BUFLEN];
    192                
    193                 const char *name = init.tasks[i].name;
     186                char *name;
     187               
     188                name = init.tasks[i].name;
    194189                if (name[0] == 0)
    195190                        name = "<unknown>";
     
    222217                }
    223218        }
    224 
     219       
    225220        /*
    226221         * Run user tasks.
     
    230225                        program_ready(&programs[i]);
    231226        }
    232 
     227       
    233228#ifdef CONFIG_KCONSOLE
    234229        if (!stdin) {
Note: See TracChangeset for help on using the changeset viewer.