lkml.org 
[lkml]   [2007]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC PATCH 01/12] PAT 64b: Add cpu_shutdown() support
    Doesn't do anything yet.

    Based on a earlier patch by Eric Biederman and Andi Kleen.

    Simple forward port of cpu-shutdown.patch to x86 tree.

    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
    ---

    Index: linux-2.6/arch/x86/kernel/reboot_64.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/reboot_64.c 2007-12-11 03:30:35.000000000 -0800
    +++ linux-2.6/arch/x86/kernel/reboot_64.c 2007-12-11 03:30:46.000000000 -0800
    @@ -113,6 +113,7 @@
    #endif

    disable_IO_APIC();
    + cpu_shutdown();

    #ifdef CONFIG_HPET_TIMER
    hpet_disable();
    Index: linux-2.6/arch/x86/kernel/setup64.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/setup64.c 2007-12-11 03:30:35.000000000 -0800
    +++ linux-2.6/arch/x86/kernel/setup64.c 2007-12-11 03:30:46.000000000 -0800
    @@ -293,3 +293,7 @@

    raw_local_save_flags(kernel_eflags);
    }
    +
    +void cpu_shutdown(void)
    +{
    +}
    Index: linux-2.6/include/asm-x86/processor_64.h
    ===================================================================
    --- linux-2.6.orig/include/asm-x86/processor_64.h 2007-12-11 03:30:35.000000000 -0800
    +++ linux-2.6/include/asm-x86/processor_64.h 2007-12-11 03:30:46.000000000 -0800
    @@ -100,6 +100,7 @@
    extern char ignore_irq13;

    extern void identify_cpu(struct cpuinfo_x86 *);
    +extern void cpu_shutdown(void);
    extern void print_cpu_info(struct cpuinfo_x86 *);
    extern void init_scattered_cpuid_features(struct cpuinfo_x86 *c);
    extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
    Index: linux-2.6/arch/x86/kernel/smp_64.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/smp_64.c 2007-10-25 02:45:41.000000000 -0700
    +++ linux-2.6/arch/x86/kernel/smp_64.c 2007-12-11 03:36:31.000000000 -0800
    @@ -471,6 +471,7 @@
    */
    cpu_clear(smp_processor_id(), cpu_online_map);
    disable_local_APIC();
    + cpu_shutdown();
    for (;;)
    halt();
    }
    --


    \
     
     \ /
      Last update: 2007-12-14 01:03    [W:0.021 / U:61.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site