Changeset 9dae191e in mainline for kernel/generic/src/main
- Timestamp:
- 2010-04-18T00:24:40Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a80687e5
- Parents:
- d8e3467
- Location:
- kernel/generic/src/main
- Files:
-
- 2 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 -
kernel/generic/src/main/main.c
rd8e3467 r9dae191e 85 85 #include <ipc/event.h> 86 86 #include <sysinfo/sysinfo.h> 87 #include <sysinfo/stats.h> 87 88 88 89 /** Global configuration structure. */ … … 225 226 226 227 printf("Detected %" PRIs " CPU(s), %" PRIu64" MiB free memory\n", 227 config.cpu_count, SIZE2MB(zone _total_size()));228 config.cpu_count, SIZE2MB(zones_total_size())); 228 229 229 230 LOG_EXEC(cpu_init()); … … 249 250 LOG_EXEC(event_init()); 250 251 LOG_EXEC(klog_init()); 252 LOG_EXEC(stats_init()); 251 253 252 254 /*
Note:
See TracChangeset
for help on using the changeset viewer.
