Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=39dd992aee381ff5077536853051fc69e58cc4a9
Commit:     39dd992aee381ff5077536853051fc69e58cc4a9
Parent:     b37d40d1759a383208ef47be8af94ebe59031691
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Sun Jul 15 01:29:24 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 04:05:19 2007 -0700

    [SPARC64]: Clear cpu_{core,sibling}_map[] in smp_fill_in_sib_core_maps()
    
    When we hot-plug in new cpus, the core_id and proc_id of existing
    cpus can change.  So in order to set the cpu groups correctly we
    need to clear the maps out completely first.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc64/kernel/smp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index 6956845..e038ae6 100644
--- a/arch/sparc64/kernel/smp.c
+++ b/arch/sparc64/kernel/smp.c
@@ -1244,6 +1244,7 @@ void __devinit smp_fill_in_sib_core_maps(void)
        for_each_possible_cpu(i) {
                unsigned int j;
 
+               cpus_clear(cpu_core_map[i]);
                if (cpu_data(i).core_id == 0) {
                        cpu_set(i, cpu_core_map[i]);
                        continue;
@@ -1259,6 +1260,7 @@ void __devinit smp_fill_in_sib_core_maps(void)
        for_each_possible_cpu(i) {
                unsigned int j;
 
+               cpus_clear(cpu_sibling_map[i]);
                if (cpu_data(i).proc_id == -1) {
                        cpu_set(i, cpu_sibling_map[i]);
                        continue;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to