Changes in kernel/generic/src/main/kinit.c [52c60b6:98000fb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r52c60b6 r98000fb 66 66 #include <ipc/ipc.h> 67 67 #include <debug.h> 68 #include <str.h> 69 #include <sysinfo/stats.h> 68 #include <string.h> 70 69 71 70 #ifdef CONFIG_SMP … … 95 94 void kinit(void *arg) 96 95 { 96 97 #if defined(CONFIG_SMP) || defined(CONFIG_KCONSOLE) 97 98 thread_t *thread; 99 #endif 98 100 99 101 /* … … 121 123 } else 122 124 panic("Unable to create kmp thread."); 123 124 125 thread_join(thread); 125 126 thread_detach(thread); … … 150 151 arch_post_smp_init(); 151 152 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 else157 printf("Unable to create kload thread\n");158 159 153 #ifdef CONFIG_KCONSOLE 160 154 if (stdin) { … … 190 184 191 185 char namebuf[TASK_NAME_BUFLEN]; 192 193 const char *name = init.tasks[i].name; 186 char *name; 187 188 name = init.tasks[i].name; 194 189 if (name[0] == 0) 195 190 name = "<unknown>"; … … 222 217 } 223 218 } 224 219 225 220 /* 226 221 * Run user tasks. … … 230 225 program_ready(&programs[i]); 231 226 } 232 227 233 228 #ifdef CONFIG_KCONSOLE 234 229 if (!stdin) {
Note:
See TracChangeset
for help on using the changeset viewer.