Changeset 0f4f1b2 in mainline for kernel/generic/src/main/kinit.c
- Timestamp:
- 2024-01-15T17:10:27Z (16 months ago)
- Branches:
- master
- Children:
- e82879c
- Parents:
- a064d4f
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-15 16:37:22)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-15 17:10:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
ra064d4f r0f4f1b2 122 122 123 123 thread_wire(thread, &cpus[0]); 124 thread_ ready(thread_ref(thread));124 thread_start(thread); 125 125 thread_join(thread); 126 126 … … 135 135 if (thread != NULL) { 136 136 thread_wire(thread, &cpus[i]); 137 thread_ready(thread); 137 thread_start(thread); 138 thread_detach(thread); 138 139 } else 139 140 log(LF_OTHER, LVL_ERROR, … … 151 152 thread = thread_create(kload, NULL, TASK, THREAD_FLAG_NONE, 152 153 "kload"); 153 if (thread != NULL) 154 thread_ready(thread); 155 else 154 if (thread != NULL) { 155 thread_start(thread); 156 thread_detach(thread); 157 } else { 156 158 log(LF_OTHER, LVL_ERROR, "Unable to create kload thread"); 159 } 157 160 158 161 #ifdef CONFIG_KCONSOLE … … 163 166 thread = thread_create(kconsole_thread, NULL, TASK, 164 167 THREAD_FLAG_NONE, "kconsole"); 165 if (thread != NULL) 166 thread_ready(thread); 167 else 168 if (thread != NULL) { 169 thread_start(thread); 170 thread_detach(thread); 171 } else { 168 172 log(LF_OTHER, LVL_ERROR, 169 173 "Unable to create kconsole thread"); 174 } 170 175 } 171 176 #endif /* CONFIG_KCONSOLE */
Note:
See TracChangeset
for help on using the changeset viewer.