Commit 5f0f1c16 authored by Magnus Damm's avatar Magnus Damm Committed by Andi Kleen

[PATCH] i386: mark cpu identify functions as __cpuinit

Mark i386-specific cpu identification functions as __cpuinit. They are all
only called from arch/i386/common.c:identify_cpu() that already is marked as
__cpuinit.
Signed-off-by: default avatarMagnus Damm <magnus@valinux.co.jp>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent b4af3f7c
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
/* /*
* Read NSC/Cyrix DEVID registers (DIR) to get more detailed info. about the CPU * Read NSC/Cyrix DEVID registers (DIR) to get more detailed info. about the CPU
*/ */
static void __init do_cyrix_devid(unsigned char *dir0, unsigned char *dir1) static void __cpuinit do_cyrix_devid(unsigned char *dir0, unsigned char *dir1)
{ {
unsigned char ccr2, ccr3; unsigned char ccr2, ccr3;
unsigned long flags; unsigned long flags;
...@@ -394,7 +394,7 @@ static inline int test_cyrix_52div(void) ...@@ -394,7 +394,7 @@ static inline int test_cyrix_52div(void)
return (unsigned char) (test >> 8) == 0x02; return (unsigned char) (test >> 8) == 0x02;
} }
static void cyrix_identify(struct cpuinfo_x86 * c) static void __cpuinit cyrix_identify(struct cpuinfo_x86 * c)
{ {
/* Detect Cyrix with disabled CPUID */ /* Detect Cyrix with disabled CPUID */
if ( c->x86 == 4 && test_cyrix_52div() ) { if ( c->x86 == 4 && test_cyrix_52div() ) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* to have CPUID. (Thanks to Herbert Oppmann) * to have CPUID. (Thanks to Herbert Oppmann)
*/ */
static int __init deep_magic_nexgen_probe(void) static int __cpuinit deep_magic_nexgen_probe(void)
{ {
int ret; int ret;
...@@ -32,7 +32,7 @@ static void __cpuinit init_nexgen(struct cpuinfo_x86 * c) ...@@ -32,7 +32,7 @@ static void __cpuinit init_nexgen(struct cpuinfo_x86 * c)
c->x86_cache_size = 256; /* A few had 1 MB... */ c->x86_cache_size = 256; /* A few had 1 MB... */
} }
static void __init nexgen_identify(struct cpuinfo_x86 * c) static void __cpuinit nexgen_identify(struct cpuinfo_x86 * c)
{ {
/* Detect NexGen with old hypercode */ /* Detect NexGen with old hypercode */
if ( deep_magic_nexgen_probe() ) { if ( deep_magic_nexgen_probe() ) {
......
...@@ -85,7 +85,7 @@ static void __cpuinit init_transmeta(struct cpuinfo_x86 *c) ...@@ -85,7 +85,7 @@ static void __cpuinit init_transmeta(struct cpuinfo_x86 *c)
#endif #endif
} }
static void __init transmeta_identify(struct cpuinfo_x86 * c) static void __cpuinit transmeta_identify(struct cpuinfo_x86 * c)
{ {
u32 xlvl; u32 xlvl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment