The change to mtrr_ap_init() depends on the previously submitted
Makefile change altering the condition for building of two files from
CONFIG_PM to CONFIG_PM_SLEEP (the latter implies CONFIG_HOTPLUG_CPU).

Signed-off-by: Jan Beulich <[EMAIL PROTECTED]>

 arch/x86/kernel/cpu/mcheck/mce_64.c |    6 +++---
 arch/x86/kernel/cpu/mtrr/generic.c  |    2 +-
 arch/x86/kernel/cpu/mtrr/main.c     |    2 +-
 arch/x86/kernel/early_printk.c      |    4 ++--
 arch/x86/kernel/setup64.c           |    2 +-
 arch/x86/kernel/smpboot_64.c        |    4 ++--
 6 files changed, 10 insertions(+), 10 deletions(-)

--- linux-2.6.24-rc5/arch/x86/kernel/cpu/mcheck/mce_64.c        2007-12-12 
11:28:18.000000000 +0100
+++ 2.6.24-rc5-x86-cpuinit/arch/x86/kernel/cpu/mcheck/mce_64.c  2007-12-04 
16:09:33.000000000 +0100
@@ -840,7 +840,7 @@ error:
        return err;
 }
 
-static void mce_remove_device(unsigned int cpu)
+static __cpuinit void mce_remove_device(unsigned int cpu)
 {
        int i;
 
@@ -855,7 +855,7 @@ static void mce_remove_device(unsigned i
 }
 
 /* Get notified when a cpu comes on/off. Be hotplug friendly. */
-static int
+static __cpuinit int
 mce_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
 {
        unsigned int cpu = (unsigned long)hcpu;
@@ -873,7 +873,7 @@ mce_cpu_callback(struct notifier_block *
        return NOTIFY_OK;
 }
 
-static struct notifier_block mce_cpu_notifier = {
+static __cpuinitdata struct notifier_block mce_cpu_notifier = {
        .notifier_call = mce_cpu_callback,
 };
 
--- linux-2.6.24-rc5/arch/x86/kernel/cpu/mtrr/generic.c 2007-12-12 
11:28:18.000000000 +0100
+++ 2.6.24-rc5-x86-cpuinit/arch/x86/kernel/cpu/mtrr/generic.c   2007-12-04 
16:09:33.000000000 +0100
@@ -69,7 +69,7 @@ void mtrr_save_fixed_ranges(void *info)
                get_fixed_ranges(mtrr_state.fixed_ranges);
 }
 
-static void print_fixed(unsigned base, unsigned step, const mtrr_type*types)
+static void __init print_fixed(unsigned base, unsigned step, const 
mtrr_type*types)
 {
        unsigned i;
 
--- linux-2.6.24-rc5/arch/x86/kernel/cpu/mtrr/main.c    2007-12-12 
11:28:18.000000000 +0100
+++ 2.6.24-rc5-x86-cpuinit/arch/x86/kernel/cpu/mtrr/main.c      2007-12-04 
16:09:33.000000000 +0100
@@ -710,7 +710,7 @@ void __init mtrr_bp_init(void)
        }
 }
 
-void mtrr_ap_init(void)
+void __cpuinit mtrr_ap_init(void)
 {
        unsigned long flags;
 
--- linux-2.6.24-rc5/arch/x86/kernel/early_printk.c     2007-12-12 
11:28:18.000000000 +0100
+++ 2.6.24-rc5-x86-cpuinit/arch/x86/kernel/early_printk.c       2007-12-04 
16:09:33.000000000 +0100
@@ -111,7 +111,7 @@ static __init void early_serial_init(cha
                if (!strncmp(s,"0x",2)) {
                        early_serial_base = simple_strtoul(s, &e, 16);
                } else {
-                       static int bases[] = { 0x3f8, 0x2f8 };
+                       static int __initdata bases[] = { 0x3f8, 0x2f8 };
 
                        if (!strncmp(s,"ttyS",4))
                                s += 4;
@@ -194,7 +194,7 @@ static struct console simnow_console = {
 
 /* Direct interface for emergencies */
 struct console *early_console = &early_vga_console;
-static int early_console_initialized = 0;
+static int __initdata early_console_initialized;
 
 void early_printk(const char *fmt, ...)
 {
--- linux-2.6.24-rc5/arch/x86/kernel/setup64.c  2007-12-12 11:28:18.000000000 
+0100
+++ 2.6.24-rc5-x86-cpuinit/arch/x86/kernel/setup64.c    2007-12-04 
16:09:33.000000000 +0100
@@ -114,7 +114,7 @@ void __init setup_per_cpu_areas(void)
        }
 } 
 
-void pda_init(int cpu)
+void __cpuinit pda_init(int cpu)
 { 
        struct x8664_pda *pda = cpu_pda(cpu);
 
--- linux-2.6.24-rc5/arch/x86/kernel/smpboot_64.c       2007-12-12 
11:28:18.000000000 +0100
+++ 2.6.24-rc5-x86-cpuinit/arch/x86/kernel/smpboot_64.c 2007-12-07 
16:12:17.000000000 +0100
@@ -152,7 +152,7 @@ static atomic_t init_deasserted __cpuini
  * Report back to the Boot Processor.
  * Running on AP.
  */
-void __cpuinit smp_callin(void)
+static void __cpuinit smp_callin(void)
 {
        int cpuid, phys_id;
        unsigned long timeout;
@@ -526,7 +526,7 @@ struct create_idle {
        int cpu;
 };
 
-void do_fork_idle(struct work_struct *work)
+static void __cpuinit do_fork_idle(struct work_struct *work)
 {
        struct create_idle *c_idle =
                container_of(work, struct create_idle, work);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to