For !CONFIG_SMP we want the empty inline setup_per_cpu_areas().
If CONFIG_SMP is set, we never want the empty inline. If we use the
generic implementation, we have it here, if not the arch has it somwhere
else (hopefully).
#define smp_init() do { } while (0)
#endif
+static inline void setup_per_cpu_areas(void)
+{
+}
+
#else
#ifdef __GENERIC_PER_CPU
memcpy(ptr, __per_cpu_start, size);
}
}
-#else
-static inline void setup_per_cpu_areas(void)
-{
-}
#endif /* !__GENERIC_PER_CPU */
/* Called by boot processor to activate the rest. */