Arch independent per-cpu initialization
[akaros.git] / kern / arch / sparc / smp.c
index c9acbf6..b00ac84 100644 (file)
@@ -150,17 +150,6 @@ int smp_call_wait(handler_wrapper_t* wrapper)
 /* Perform any initialization needed by per_cpu_info.  Right now, this just
  * inits the amsg list (which sparc will probably also want).  Make sure every
  * core calls this at some point in the smp_boot process. */
-void smp_percpu_init(void)
+void __arch_pcpu_init(uint32_t coreid)
 {
-       uint32_t coreid = core_id();
-       spinlock_init(&per_cpu_info[coreid].immed_amsg_lock);
-       STAILQ_INIT(&per_cpu_info[coreid].immed_amsgs);
-       spinlock_init(&per_cpu_info[coreid].routine_amsg_lock);
-       STAILQ_INIT(&per_cpu_info[coreid].routine_amsgs);
-#ifdef __CONFIG_EXPER_TRADPROC__
-       per_cpu_info[coreid].ticks = 0;
-       spinlock_init(&per_cpu_info[coreid].runqueue_lock);
-       TAILQ_INIT(&per_cpu_info[coreid].runqueue);
-       set_core_timer(TIMER_uSEC);
-#endif
 }