diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-01-24 23:29:59 +0100 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2022-01-25 09:53:52 +0100 |
commit | 57a420435edcb0b947a74171bf49ada7a5892d4f (patch) | |
tree | ed38b8dbb779c8a775f186a44efb2541ff0370e6 /arch/arm/kernel/smp.c | |
parent | a14a96d7560687d328e3702682c94b549e1c3911 (diff) | |
download | linux-stable-57a420435edcb0b947a74171bf49ada7a5892d4f.tar.gz linux-stable-57a420435edcb0b947a74171bf49ada7a5892d4f.tar.bz2 linux-stable-57a420435edcb0b947a74171bf49ada7a5892d4f.zip |
ARM: drop pointless SMP check on secondary startup path
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>
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r-- | arch/arm/kernel/smp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 951559e5bea3..e34efa96cea1 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -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"); } |