]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75ff076a4c683b1f141a111c49c52f91cfbb1e82
tree77b20f4316b3bdb80bbbb2023795dfb5e42cafce
parentfb873e9cdc9bcc15beca6ba0627ad19bb861292b
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