* early_cpu_init
@ 2005-06-25 22:55 Joilnen Leite
2005-06-25 23:30 ` early_cpu_init randy_dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Joilnen Leite @ 2005-06-25 22:55 UTC (permalink / raw)
To: linux-kernel
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/
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: early_cpu_init
2005-06-25 22:55 early_cpu_init Joilnen Leite
@ 2005-06-25 23:30 ` randy_dunlap
0 siblings, 0 replies; 2+ messages in thread
From: randy_dunlap @ 2005-06-25 23:30 UTC (permalink / raw)
To: Joilnen Leite; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-25 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-25 22:55 early_cpu_init Joilnen Leite
2005-06-25 23:30 ` early_cpu_init randy_dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®