ARM: drop pointless SMP check on secondary startup path
authorArd Biesheuvel <ardb@kernel.org>
Mon, 24 Jan 2022 22:29:59 +0000 (23:29 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 25 Jan 2022 08:53:52 +0000 (09:53 +0100)
Only SMP systems use the secondary startup path by definition, so there
is no need for SMP conditionals there.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/kernel/smp.c

index 951559e5bea33e62be08df6917d3fd85a3a7d4d1..e34efa96cea10ff9fbd68d324b1ea4ed2acfb286 100644 (file)
@@ -405,11 +405,6 @@ static void smp_store_cpu_info(unsigned int cpuid)
 
 static void set_current(struct task_struct *cur)
 {
-       if (!IS_ENABLED(CONFIG_CURRENT_POINTER_IN_TPIDRURO) && !is_smp()) {
-               __current = cur;
-               return;
-       }
-
        /* Set TPIDRURO */
        asm("mcr p15, 0, %0, c13, c0, 3" :: "r"(cur) : "memory");
 }