powerpc: smp: remove hack to obtain offset of task_struct::cpu
authorArd Biesheuvel <ardb@kernel.org>
Tue, 14 Sep 2021 12:10:34 +0000 (14:10 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 30 Sep 2021 14:13:11 +0000 (16:13 +0200)
commit336868afbaae2d153fc20268a21747c31e5071b8
treee2869a3eaf9f6590578cc4f55fb031b78e07333c
parentbcf9033e5449bdcaa9bed46467a7141a8049dadb
powerpc: smp: remove hack to obtain offset of task_struct::cpu

Instead of relying on awful hacks to obtain the offset of the cpu field
in struct task_struct, move it back into struct thread_info, which does
not create the same level of circular dependency hell when trying to
include the header file that defines it.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/asm-offsets.c