]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc: Prepare for splitting giveup_{fpu, altivec, vsx} in two
authorCyril Bur <cyrilbur@gmail.com>
Mon, 29 Feb 2016 06:53:48 +0000 (17:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Mar 2016 12:34:48 +0000 (23:34 +1100)
commitde2a20aa7237b45d3c14a2505804a8daa95a8f53
tree13593cbcaa3c487fa1a8a9ce76c1bdc5e50b602f
parent70fe3d980f5f14d8125869125ba9a0ea95e09c6b
powerpc: Prepare for splitting giveup_{fpu, altivec, vsx} in two

This prepares for the decoupling of saving {fpu,altivec,vsx} registers and
marking {fpu,altivec,vsx} as being unused by a thread.

Currently giveup_{fpu,altivec,vsx}() does both however optimisations to
task switching can be made if these two operations are decoupled.
save_all() will permit the saving of registers to thread structs and leave
threads MSR with bits enabled.

This patch introduces no functional change.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/switch_to.h
arch/powerpc/kernel/process.c