powerpc: Only define _TASK_CPU for 32-bit
authorMichael Ellerman <mpe@ellerman.id.au>
Sun, 18 Apr 2021 13:16:41 +0000 (23:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Apr 2021 04:22:24 +0000 (14:22 +1000)
commit3027a37c06be364e6443d3df3adf45576fba50cb
tree8e4542dc44699c78f1b00efdc1e8c846e66faecd
parent39d0099f94390eb7a677e1a5c9bb56a4daa242a1
powerpc: Only define _TASK_CPU for 32-bit

We have some interesting code in our Makefile to define _TASK_CPU, based
on awk'ing the value out of asm-offsets.h. It exists to circumvent some
circular header dependencies that prevent us from referring to
task_struct in the relevant code. See the comment around _TASK_CPU in
smp.h for more detail.

Maybe one day we can come up with a better solution, but for now we can
at least limit that logic to 32-bit, because it's not needed for 64-bit.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210418131641.1186227-1-mpe@ellerman.id.au
arch/powerpc/Makefile