lkml.org 
[lkml]   [2005]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-06-26 01:34    [W:0.060 / U:0.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site