MIPS: SMP: Remove cpu_callin_map
authorMatt Redfearn <matt.redfearn@imgtec.com>
Fri, 4 Nov 2016 09:28:57 +0000 (09:28 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:34:38 +0000 (16:34 +0100)
The previous commit made cpu_callin_map redundant, since it is no longer
used to signal secondary CPUs starting, or going offline. Remove it now.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Qais Yousef <qsyousef@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Anna-Maria Gleixner <anna-maria@linutronix.de>
Cc: Adam Buchbinder <adam.buchbinder@gmail.com>
Cc: Yang Shi <yang.shi@windriver.com>
Cc: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14503/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/smp.c
arch/mips/include/asm/smp.h
arch/mips/kernel/smp-bmips.c
arch/mips/kernel/smp-cps.c
arch/mips/kernel/smp.c
arch/mips/loongson64/loongson-3/smp.c

index 889c3f49dbc0e4fb3fe15eae7a7134a009465c17..a3d73147914191b4689642e17d6c44e754023d0c 100644 (file)
@@ -290,7 +290,6 @@ static int octeon_cpu_disable(void)
 
        set_cpu_online(cpu, false);
        calculate_cpu_foreign_map();
-       cpumask_clear_cpu(cpu, &cpu_callin_map);
        octeon_fixup_irqs();
 
        __flush_cache_all();
index 060f23ff181718fb6b9dec3f3a206f1013452956..f8c5faa935847ec5fa370514d261e38909bffe37 100644 (file)
@@ -46,8 +46,6 @@ extern int __cpu_logical_map[NR_CPUS];
 #define SMP_DUMP               0x8
 #define SMP_ASK_C0COUNT                0x10
 
-extern cpumask_t cpu_callin_map;
-
 /* Mask of CPUs which are currently definitely operating coherently */
 extern cpumask_t cpu_coherent_mask;
 
index 6d0f1321e0841077531787e07380088b8d6468f0..f6700dc2fb09e4190e13fb65ad529d07bbd42e34 100644 (file)
@@ -364,7 +364,6 @@ static int bmips_cpu_disable(void)
 
        set_cpu_online(cpu, false);
        calculate_cpu_foreign_map();
-       cpumask_clear_cpu(cpu, &cpu_callin_map);
        clear_c0_status(IE_IRQ5);
 
        local_flush_tlb_all();
index 6183ad84cc734501ddad895dbb640d44a34341de..44339b470ef44e598dc20acbfdfd840487503a31 100644 (file)
@@ -399,7 +399,6 @@ static int cps_cpu_disable(void)
        smp_mb__after_atomic();
        set_cpu_online(cpu, false);
        calculate_cpu_foreign_map();
-       cpumask_clear_cpu(cpu, &cpu_callin_map);
 
        return 0;
 }
index 03daf900812453450fe835417cfacd175c989505..0a831f63b0ecda2fe4606aad7d0f163f84226d11 100644 (file)
@@ -48,8 +48,6 @@
 #include <asm/setup.h>
 #include <asm/maar.h>
 
-cpumask_t cpu_callin_map;              /* Bitmask of started secondaries */
-
 int __cpu_number_map[NR_CPUS];         /* Map physical to logical */
 EXPORT_SYMBOL(__cpu_number_map);
 
index 99aab9f859044e01111c2cfba9b97bc186edc38e..cfcf240cedbe26810bc77ffd79bcf297cb6e0f9a 100644 (file)
@@ -418,7 +418,6 @@ static int loongson3_cpu_disable(void)
 
        set_cpu_online(cpu, false);
        calculate_cpu_foreign_map();
-       cpumask_clear_cpu(cpu, &cpu_callin_map);
        local_irq_save(flags);
        fixup_irqs();
        local_irq_restore(flags);