aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/cpu/common.c
diff options
context:
space:
mode:
authorChuck Ebbert <76306.1226@compuserve.com>2006-03-23 05:59:33 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-23 10:38:04 -0500
commit3bc9b76bede9b3c72088258c7e72eb823f3351d4 (patch)
tree9f1eed2e6ebc9e7a990178e62b55fb6ee3267d8f /arch/i386/kernel/cpu/common.c
parent9a0b5817ad97bb718ab85322759d19a238712b47 (diff)
[PATCH] i386: __devinit should be __cpuinit
Several places in arch/i386/kernel/cpu and kernel/cpu were using __devinit when they should have been __cpuinit. Fixing that saves ~4K when CONFIG_HOTPLUG && !CONFIG_HOTPLUG_CPU. Noticed by Andrew Morton. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/cpu/common.c')
-rw-r--r--arch/i386/kernel/cpu/common.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c
index e6bd095ae108..f63dcfb16dad 100644
--- a/arch/i386/kernel/cpu/common.c
+++ b/arch/i386/kernel/cpu/common.c
@@ -25,9 +25,9 @@ EXPORT_PER_CPU_SYMBOL(cpu_gdt_descr);
25DEFINE_PER_CPU(unsigned char, cpu_16bit_stack[CPU_16BIT_STACK_SIZE]); 25DEFINE_PER_CPU(unsigned char, cpu_16bit_stack[CPU_16BIT_STACK_SIZE]);
26EXPORT_PER_CPU_SYMBOL(cpu_16bit_stack); 26EXPORT_PER_CPU_SYMBOL(cpu_16bit_stack);
27 27
28static int cachesize_override __devinitdata = -1; 28static int cachesize_override __cpuinitdata = -1;
29static int disable_x86_fxsr __devinitdata = 0; 29static int disable_x86_fxsr __cpuinitdata = 0;
30static int disable_x86_serial_nr __devinitdata = 1; 30static int disable_x86_serial_nr __cpuinitdata = 1;
31 31
32struct cpu_dev * cpu_devs[X86_VENDOR_NUM] = {}; 32struct cpu_dev * cpu_devs[X86_VENDOR_NUM] = {};
33 33
@@ -59,7 +59,7 @@ static int __init cachesize_setup(char *str)
59} 59}
60__setup("cachesize=", cachesize_setup); 60__setup("cachesize=", cachesize_setup);
61 61
62int __devinit get_model_name(struct cpuinfo_x86 *c) 62int __cpuinit get_model_name(struct cpuinfo_x86 *c)
63{ 63{
64 unsigned int *v; 64 unsigned int *v;
65 char *p, *q; 65 char *p, *q;
@@ -89,7 +89,7 @@ int __devinit get_model_name(struct cpuinfo_x86 *c)
89} 89}
90 90
91 91
92void __devinit display_cacheinfo(struct cpuinfo_x86 *c) 92void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c)
93{ 93{
94 unsigned int n, dummy, ecx, edx, l2size; 94 unsigned int n, dummy, ecx, edx, l2size;
95 95
@@ -130,7 +130,7 @@ void __devinit display_cacheinfo(struct cpuinfo_x86 *c)
130/* in particular, if CPUID levels 0x80000002..4 are supported, this isn't used */ 130/* in particular, if CPUID levels 0x80000002..4 are supported, this isn't used */
131 131
132/* Look up CPU names by table lookup. */ 132/* Look up CPU names by table lookup. */
133static char __devinit *table_lookup_model(struct cpuinfo_x86 *c) 133static char __cpuinit *table_lookup_model(struct cpuinfo_x86 *c)
134{ 134{
135 struct cpu_model_info *info; 135 struct cpu_model_info *info;
136 136
@@ -151,7 +151,7 @@ static char __devinit *table_lookup_model(struct cpuinfo_x86 *c)
151} 151}
152 152
153 153
154static void __devinit get_cpu_vendor(struct cpuinfo_x86 *c, int early) 154static void __cpuinit get_cpu_vendor(struct cpuinfo_x86 *c, int early)
155{ 155{
156 char *v = c->x86_vendor_id; 156 char *v = c->x86_vendor_id;
157 int i; 157 int i;
@@ -210,7 +210,7 @@ static inline int flag_is_changeable_p(u32 flag)
210 210
211 211
212/* Probe for the CPUID instruction */ 212/* Probe for the CPUID instruction */
213static int __devinit have_cpuid_p(void) 213static int __cpuinit have_cpuid_p(void)
214{ 214{
215 return flag_is_changeable_p(X86_EFLAGS_ID); 215 return flag_is_changeable_p(X86_EFLAGS_ID);
216} 216}
@@ -254,7 +254,7 @@ static void __init early_cpu_detect(void)
254 } 254 }
255} 255}
256 256
257void __devinit generic_identify(struct cpuinfo_x86 * c) 257void __cpuinit generic_identify(struct cpuinfo_x86 * c)
258{ 258{
259 u32 tfms, xlvl; 259 u32 tfms, xlvl;
260 int junk; 260 int junk;
@@ -307,7 +307,7 @@ void __devinit generic_identify(struct cpuinfo_x86 * c)
307#endif 307#endif
308} 308}
309 309
310static void __devinit squash_the_stupid_serial_number(struct cpuinfo_x86 *c) 310static void __cpuinit squash_the_stupid_serial_number(struct cpuinfo_x86 *c)
311{ 311{
312 if (cpu_has(c, X86_FEATURE_PN) && disable_x86_serial_nr ) { 312 if (cpu_has(c, X86_FEATURE_PN) && disable_x86_serial_nr ) {
313 /* Disable processor serial number */ 313 /* Disable processor serial number */
@@ -335,7 +335,7 @@ __setup("serialnumber", x86_serial_nr_setup);
335/* 335/*
336 * This does the hard work of actually picking apart the CPU stuff... 336 * This does the hard work of actually picking apart the CPU stuff...
337 */ 337 */
338void __devinit identify_cpu(struct cpuinfo_x86 *c) 338void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
339{ 339{
340 int i; 340 int i;
341 341
@@ -453,7 +453,7 @@ void __devinit identify_cpu(struct cpuinfo_x86 *c)
453} 453}
454 454
455#ifdef CONFIG_X86_HT 455#ifdef CONFIG_X86_HT
456void __devinit detect_ht(struct cpuinfo_x86 *c) 456void __cpuinit detect_ht(struct cpuinfo_x86 *c)
457{ 457{
458 u32 eax, ebx, ecx, edx; 458 u32 eax, ebx, ecx, edx;
459 int index_msb, core_bits; 459 int index_msb, core_bits;
@@ -500,7 +500,7 @@ void __devinit detect_ht(struct cpuinfo_x86 *c)
500} 500}
501#endif 501#endif
502 502
503void __devinit print_cpu_info(struct cpuinfo_x86 *c) 503void __cpuinit print_cpu_info(struct cpuinfo_x86 *c)
504{ 504{
505 char *vendor = NULL; 505 char *vendor = NULL;
506 506
@@ -523,7 +523,7 @@ void __devinit print_cpu_info(struct cpuinfo_x86 *c)
523 printk("\n"); 523 printk("\n");
524} 524}
525 525
526cpumask_t cpu_initialized __devinitdata = CPU_MASK_NONE; 526cpumask_t cpu_initialized __cpuinitdata = CPU_MASK_NONE;
527 527
528/* This is hacky. :) 528/* This is hacky. :)
529 * We're emulating future behavior. 529 * We're emulating future behavior.
@@ -570,7 +570,7 @@ void __init early_cpu_init(void)
570 * and IDT. We reload them nevertheless, this function acts as a 570 * and IDT. We reload them nevertheless, this function acts as a
571 * 'CPU state barrier', nothing should get across. 571 * 'CPU state barrier', nothing should get across.
572 */ 572 */
573void __devinit cpu_init(void) 573void __cpuinit cpu_init(void)
574{ 574{
575 int cpu = smp_processor_id(); 575 int cpu = smp_processor_id();
576 struct tss_struct * t = &per_cpu(init_tss, cpu); 576 struct tss_struct * t = &per_cpu(init_tss, cpu);
@@ -670,7 +670,7 @@ void __devinit cpu_init(void)
670} 670}
671 671
672#ifdef CONFIG_HOTPLUG_CPU 672#ifdef CONFIG_HOTPLUG_CPU
673void __devinit cpu_uninit(void) 673void __cpuinit cpu_uninit(void)
674{ 674{
675 int cpu = raw_smp_processor_id(); 675 int cpu = raw_smp_processor_id();
676 cpu_clear(cpu, cpu_initialized); 676 cpu_clear(cpu, cpu_initialized);