Changeset 9dae191e in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2010-04-18T00:24:40Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a80687e5
- Parents:
- d8e3467
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
rd8e3467 r9dae191e 67 67 #include <debug.h> 68 68 #include <str.h> 69 #include < ps/load.h>69 #include <sysinfo/stats.h> 70 70 71 71 #ifdef CONFIG_SMP … … 123 123 } else 124 124 panic("Unable to create kmp thread."); 125 125 126 thread_join(thread); 126 127 thread_detach(thread); … … 151 152 arch_post_smp_init(); 152 153 154 /* Start thread computing system load */ 155 thread = thread_create(kload, NULL, TASK, 0, "kload", false); 156 if (thread != NULL) 157 thread_ready(thread); 158 else 159 printf("Unable to create kload thread\n"); 160 153 161 #ifdef CONFIG_KCONSOLE 154 162 if (stdin) { … … 164 172 #endif /* CONFIG_KCONSOLE */ 165 173 166 /* Start thread computing system load */167 thread = thread_create(kload_thread, NULL, TASK, 0, "kload", false);168 if (thread != NULL)169 thread_ready(thread);170 else171 printf("Unable to create kload thread\n");172 173 174 interrupts_enable(); 174 175
Note:
See TracChangeset
for help on using the changeset viewer.