Commit 57a42043 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

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: default avatarArd Biesheuvel <ardb@kernel.org>
parent a14a96d7
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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");
}