The idea is not just to move smp_init(), but to move
#ifdef __GENERIC_PER_CPU portion to outside #else of
#ifndef CONFIG_SMP.
__GENERIC_PER_CPU will not be defined for UP and hence
setup_per_cpu_areas() wil be an empty function in UP case.
Rusty suggested this and I have been using it.
Thanks
-- Dipankar Sarma <dipankar@in.ibm.com> http://lse.sourceforge.net Linux Technology Center, IBM Software Lab, Bangalore, India. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/