powerpc: Redefine HMT_xxx macros as empty on PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 25 Aug 2021 13:34:45 +0000 (13:34 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Aug 2021 14:56:52 +0000 (00:56 +1000)
commit8149238ffd210875f5a77e3c654bb59b58da35e3
treed7d83b4775018f0f38543db7cbad8f6f60b54d13
parentf50da6edbf1ebf35dd8070847bfab5cb988d472b
powerpc: Redefine HMT_xxx macros as empty on PPC32

HMT_xxx macros are macros for adjusting thread priority
(hardware multi-threading) are macros inherited from PPC64
via commit 5f7c690728ac ("[PATCH] powerpc: Merged ppc_asm.h")

Those instructions are pointless on PPC32, but some common
fonctions like arch_cpu_idle() use them.

So make them empty on PPC32 to avoid those instructions.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c5a07fadea33d640ad10cecf0ac8faaec1c524e0.1629898474.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/vdso/processor.h