]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64e: Drop stale call to smp_processor_id() which hangs SMP startup
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 8 Aug 2019 12:48:26 +0000 (12:48 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Aug 2019 12:56:57 +0000 (22:56 +1000)
commit3faf0fdfae00c45620fe642bafdadc0dd8123c68
tree371f6d5f3f329a95ab1773d93f6342914ffb9019
parent1fe504efed0de1b860d807f29ee30753d45d532b
powerpc/64e: Drop stale call to smp_processor_id() which hangs SMP startup

Commit cdc185b79614 ("powerpc/mm: any thread in one core can be the
first to setup TLB1") removed the need to know the cpu_id in
early_init_this_mmu(), but the call to smp_processor_id() which was
marked __maybe_used remained.

Since commit 483aaf95fd88 ("powerpc: Activate CONFIG_THREAD_INFO_IN_TASK")
thread_info cannot be reached before MMU is properly set up.

Drop this stale call to smp_processor_id() which makes SMP hang when
CONFIG_PREEMPT is set.

Fixes: cdc185b79614 ("powerpc/mm: any thread in one core can be the first to setup TLB1")
Fixes: 483aaf95fd88 ("powerpc: Activate CONFIG_THREAD_INFO_IN_TASK")
Cc: stable@vger.kernel.org # v5.1+
Reported-by: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/bef479514f4c08329fa649f67735df8918bc0976.1565268248.git.christophe.leroy@c-s.fr
arch/powerpc/mm/nohash/tlb.c