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