powerpc: Remove more redundant VSX save/tests
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 16 Aug 2017 06:01:18 +0000 (16:01 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Aug 2017 12:35:04 +0000 (22:35 +1000)
commit96c79b6bd74039e8a799e4aa2d331cbd478ab5a1
tree77b20f4316b3bdb80bbbb2023795dfb5e42cafce
parentdc801081f2eae57a389bc9230ff4fb0d91487990
powerpc: Remove more redundant VSX save/tests

__giveup_vsx/save_vsx are completely equivalent to testing MSR_FP
and MSR_VEC and calling the corresponding giveup/save function so
just remove the spurious VSX cases. Also add WARN_ONs checking that
we never have VSX enabled without the two other.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c