early_cpu_init
Hi
in the function:early_cpu_init we could to change to avoid initialize unecessary code ?
arch/i386/cpu/common.c:536
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.
thanks Joilnen
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/
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