summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorAlmuHS <liberamenso10000@gmail.com>2019-03-29 14:55:22 +0100
committerAlmuHS <liberamenso10000@gmail.com>2019-03-29 14:55:22 +0100
commit5487dbeeee6c4da9a753a4638ac06828d7a8ba71 (patch)
tree96ee994119882a6e58eb8103f58d43b4c33bd04c /kern
parent922dd38215bf337978fd40a42e855144be50a63f (diff)
removed if(ncpu > 1)
Diffstat (limited to 'kern')
-rw-r--r--kern/startup.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/kern/startup.c b/kern/startup.c
index 2c67b8be..01c4fb28 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -230,18 +230,16 @@ void start_kernel_threads(void)
(void) kernel_thread(kernel_task, sched_thread, (char *) 0);
#if NCPUS > 1
- if(ncpu > 1){
- /*
- * Create the shutdown thread.
- */
- (void) kernel_thread(kernel_task, action_thread, (char *) 0);
+ /*
+ * Create the shutdown thread.
+ */
+ (void) kernel_thread(kernel_task, action_thread, (char *) 0);
- /*
- * Allow other CPUs to run.
- */
+ /*
+ * Allow other CPUs to run.
+ */
- start_other_cpus();
- }
+ start_other_cpus();
#endif /* NCPUS > 1 */
/*