Changeset c47e1a8 in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2010-05-21T07:50:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/src/main/kinit.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
rcf8cc36 rc47e1a8 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.
