lkml.org 
[lkml]   [2008]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/14] [PARISC] Populate cpu_enabled_map
    Date
    Populate the cpu_enabled_map correctly.

    Note that this patch does not actually make any decisions based
    on the contents of the map.

    However, as the map is presented via sysfs in:

    /sys/devices/system/cpu/

    It should be populated correctly.

    Signed-off-by: Alex Chiang <achiang@hp.com>
    Cc: Kyle McMartin <kyle@mcmartin.ca>
    ---

    arch/parisc/kernel/processor.c | 1 +
    arch/parisc/kernel/smp.c | 3 +++
    2 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c
    index 370086f..fb81222 100644
    --- a/arch/parisc/kernel/processor.c
    +++ b/arch/parisc/kernel/processor.c
    @@ -201,6 +201,7 @@ static int __cpuinit processor_probe(struct parisc_device *dev)
    #ifdef CONFIG_SMP
    if (cpuid) {
    cpu_set(cpuid, cpu_present_map);
    + cpu_set(cpuid, cpu_enabled_map);
    cpu_up(cpuid);
    }
    #endif
    diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
    index 85fc775..a31b0ad 100644
    --- a/arch/parisc/kernel/smp.c
    +++ b/arch/parisc/kernel/smp.c
    @@ -535,6 +535,7 @@ void __devinit smp_prepare_boot_cpu(void)

    cpu_set(bootstrap_processor, cpu_online_map);
    cpu_set(bootstrap_processor, cpu_present_map);
    + cpu_set(bootstrap_processor, cpu_enabled_map);
    }


    @@ -546,7 +547,9 @@ void __devinit smp_prepare_boot_cpu(void)
    void __init smp_prepare_cpus(unsigned int max_cpus)
    {
    cpus_clear(cpu_present_map);
    + cpus_clear(cpu_enabled_map);
    cpu_set(0, cpu_present_map);
    + cpu_set(0, cpu_enabled_map);

    parisc_max_cpus = max_cpus;
    if (!max_cpus)


    \
     
     \ /
      Last update: 2008-07-15 04:39    [W:0.048 / U:31.792 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site