]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Explicitly add vector features to CPU_FTRS_POSSIBLE
authorNicholas Piggin <npiggin@gmail.com>
Tue, 20 Feb 2018 19:08:25 +0000 (05:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 31 Mar 2018 13:47:48 +0000 (00:47 +1100)
commit10e28618487744608b3afda7e959fbc3bdb940f0
treea93d576c37b7b85b8342b8ab225c0abc3c773ba7
parent0da092f21e4b32bb47a471b03320ab1340200dd5
powerpc/64s: Explicitly add vector features to CPU_FTRS_POSSIBLE

ALTIVEC and VSX features are not added by to default to the POWERx CPU
feature sets because they are intended to be enabled by firmware.
Currently they end up in CPU_FTRS_POSSIBLE due to their inclusion in
other the set for other CPUs, eg. PPC970.

But they should be added individually to the CPU_FTRS_POSSIBLE set,
because if we reduce the set of CPUs that are built-for they may
disappear from the possible mask.

It already contains CPU_FTR_VSX, so add ALTIVEC. The _COMP features
should be used because they won't be present if compiled out.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Add detail to change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/cputable.h