SMP - Compiles for both single and multi processor again

- this patch adds various fixes as some of the previous patches break
  compilations without CONFIG_SMP being set
This commit is contained in:
Tomas Hruby
2010-09-15 14:11:03 +00:00
parent 454589debd
commit e87d29171f
7 changed files with 45 additions and 25 deletions
+2
View File
@@ -188,10 +188,12 @@ PRIVATE void idle(void)
switch_address_space_idle();
#ifdef CONFIG_SMP
/* we don't need to keep time on APs as it is handled on the BSP */
if (cpuid != bsp_cpu_id)
arch_stop_local_timer();
get_cpulocal_var(cpu_is_idle) = 1;
#endif
/* start accounting for the idle time */
context_stop(proc_addr(KERNEL));