Ignore:
File:
1 edited

Legend:

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

    r98000fb r52c60b6  
    6666#include <ipc/ipc.h>
    6767#include <debug.h>
    68 #include <string.h>
     68#include <str.h>
     69#include <sysinfo/stats.h>
    6970
    7071#ifdef CONFIG_SMP
     
    9495void kinit(void *arg)
    9596{
    96 
    97 #if defined(CONFIG_SMP) || defined(CONFIG_KCONSOLE)
    9897        thread_t *thread;
    99 #endif
    10098       
    10199        /*
     
    123121                } else
    124122                        panic("Unable to create kmp thread.");
     123               
    125124                thread_join(thread);
    126125                thread_detach(thread);
     
    151150        arch_post_smp_init();
    152151       
     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       
    153159#ifdef CONFIG_KCONSOLE
    154160        if (stdin) {
     
    184190               
    185191                char namebuf[TASK_NAME_BUFLEN];
    186                 char *name;
    187                
    188                 name = init.tasks[i].name;
     192               
     193                const char *name = init.tasks[i].name;
    189194                if (name[0] == 0)
    190195                        name = "<unknown>";
     
    217222                }
    218223        }
    219        
     224
    220225        /*
    221226         * Run user tasks.
     
    225230                        program_ready(&programs[i]);
    226231        }
    227        
     232
    228233#ifdef CONFIG_KCONSOLE
    229234        if (!stdin) {
Note: See TracChangeset for help on using the changeset viewer.