MIPS: SGI-IP27: No need for slice_map
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Thu, 9 Jan 2020 12:33:51 +0000 (13:33 +0100)
committerPaul Burton <paulburton@kernel.org>
Thu, 9 Jan 2020 23:30:07 +0000 (15:30 -0800)
per_cpu_init is called exactly once for every CPU. So there is no
need for protection via slice_map.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/mach-ip27/mmzone.h
arch/mips/sgi-ip27/ip27-init.c

index 534a50f791472e38b4968b846cb9aec8965b378c..08c36e50a860549b204b5c82a360acf6453ca80d 100644 (file)
@@ -13,7 +13,6 @@ struct hub_data {
        kern_vars_t     kern_vars;
        DECLARE_BITMAP(h_bigwin_used, HUB_NUM_BIG_WINDOW);
        cpumask_t       h_cpus;
-       unsigned long slice_map;
 };
 
 struct node_data {
index 84a78bd1386a236a5e916d3d64bcb4884f8cca51..32bcb8d1dd885debc5213500342cec6b6c970946 100644 (file)
@@ -72,12 +72,7 @@ static void per_hub_init(nasid_t nasid)
 void per_cpu_init(void)
 {
        int cpu = smp_processor_id();
-       int slice = LOCAL_HUB_L(PI_CPU_NUM);
        nasid_t nasid = get_nasid();
-       struct hub_data *hub = hub_data(nasid);
-
-       if (test_and_set_bit(slice, &hub->slice_map))
-               return;
 
        clear_c0_status(ST0_IM);