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>
This commit is contained in:
parent
a14a96d756
commit
57a420435e
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user