]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
powerpc/64: Reclaim CPU_FTR_SUBCORE
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 May 2017 06:33:52 +0000 (16:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 1 Jun 2017 09:56:28 +0000 (19:56 +1000)
commit0e5e7f5e9700661c3ddd95501743fb52fec1ab07
tree805cac6402f5012e47687930de9f8371adf906d8
parentdc421b200f91930c9c6a9586810ff8c232cf10fc
powerpc/64: Reclaim CPU_FTR_SUBCORE

We are running low on CPU feature bits, so we only want to use them when
it's really necessary.

CPU_FTR_SUBCORE is only used in one place, and only in C, so we don't
need it in order to make asm patching work. It can only be set on
"Power8" CPUs, which in practice means POWER8, POWER8E and POWER8NVL.
There are no plans to implement it on future CPUs, but if there ever
were we could retrofit it then.

Although KVM uses subcores, it never looks at the CPU feature, it either
looks at the ISA level or the threads_per_subcore value.

So drop the CPU feature and do a PVR check instead. Drop the device tree
"subcore" feature as we no longer support doing anything with it, and we
will drop it from skiboot too.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/cputable.h
arch/powerpc/kernel/dt_cpu_ftrs.c
arch/powerpc/platforms/powernv/subcore.c