diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2020-01-09 13:33:51 +0100 |
---|---|---|
committer | Paul Burton <paulburton@kernel.org> | 2020-01-09 15:30:07 -0800 |
commit | d96ee783e33d661a58788eaaf0cd9ae040c79d5a (patch) | |
tree | d43ad64a19ed0954aa84f38be29e8a8419eb5e5b /arch/mips/sgi-ip27 | |
parent | d31f9e64898be28ebe9da4b5a0030f2ec4a0912c (diff) |
MIPS: SGI-IP27: No need for slice_map
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
Diffstat (limited to 'arch/mips/sgi-ip27')
-rw-r--r-- | arch/mips/sgi-ip27/ip27-init.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/sgi-ip27/ip27-init.c b/arch/mips/sgi-ip27/ip27-init.c index 84a78bd1386a..32bcb8d1dd88 100644 --- a/arch/mips/sgi-ip27/ip27-init.c +++ b/arch/mips/sgi-ip27/ip27-init.c @@ -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); |