Messages in this thread | | | Date | Sat, 25 Jun 2005 16:30:13 -0700 | From | randy_dunlap <> | Subject | Re: early_cpu_init |
| |
On Sat, 25 Jun 2005 19:55:46 -0300 (ART) Joilnen Leite wrote:
| Hi | | in the function: | early_cpu_init we could to change to avoid initialize | unecessary code ? | | arch/i386/cpu/common.c:536
arch/i386/kernel/cpu/common.c
| void __init early_cpu_init(void) | { | #ifdef CONFIG_MCYRIXIII | cyrix_init_cpu(); | #elif defined CONFIG_MGODE6X1 | nsc_init_cpu(); | #elif defined CONFIG_MK6 || defined CONFIG_MK7 | ||defined CONFIG_MK8 | amd_init_cpu(); | #elif defined CONFIG_CRUSOE || defined CONFIG_EFFICEON | transmeta_init_cpu(); | #elif defined OTHERS_THAT_I_DONT_KNOW | centaur_init_cpu(); | rise_init_cpu(); | nexgen_init_cpu(); | umc_init_cpu(); | early_cpu_detect(); | #else | intel_cpu_init(); | | just only a idea.
AFAIK, it's done without the ifdefs so that a common kernel (like a distro kernel) can run on any of those CPU types.
--- ~Randy - 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/
| |