summaryrefslogtreecommitdiffstats
path: root/src/sys/init
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-07-07 17:24:25 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-07-07 17:24:25 -0500
commit2c2101232adf2b134cf408f05f00a21dc5b8b0f3 (patch)
treea9710129f768bce446b05cab9dac44c9846bb39b /src/sys/init
parentce785ea353070d14462e3c3395bf89d47c896461 (diff)
downloadtalos-hostboot-2c2101232adf2b134cf408f05f00a21dc5b8b0f3.tar.gz
talos-hostboot-2c2101232adf2b134cf408f05f00a21dc5b8b0f3.zip
SMT support.
Diffstat (limited to 'src/sys/init')
-rw-r--r--src/sys/init/init_main.C9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sys/init/init_main.C b/src/sys/init/init_main.C
index f2b40d497..91c30bee4 100644
--- a/src/sys/init/init_main.C
+++ b/src/sys/init/init_main.C
@@ -9,8 +9,9 @@ mutex_t global_mutex;
void init_child(void* unused)
{
mutex_lock(global_mutex);
- printk("Here I am %d\n", task_gettid());
+ printk("Crun: %d on %d\n", task_gettid(), task_getcpuid());
mutex_unlock(global_mutex);
+ for (volatile int i = 0 ; i < 100000; i++);
task_end();
}
@@ -20,7 +21,7 @@ void init_main(void* unused)
{
printk("Starting init!\n");
- printk("Bringing up VFS...");
+ printk("Bringing up VFS...");
task_create(&vfs_main, NULL);
task_yield(); // TODO... add a barrier to ensure VFS is fully up.
@@ -40,8 +41,8 @@ void init_main(void* unused)
{
mutex_lock(global_mutex);
int t = task_create(&init_child, NULL);
- printk("Created child %d\n", t);
- for (volatile int i = 0 ; i < 10000000; i++);
+ printk("Create child %d\n", t);
+ for (volatile int i = 0 ; i < 1000000; i++);
mutex_unlock(global_mutex);
}
}
OpenPOWER on IntegriCloud