Re: [PATCH 16/19] powerpc: create giveup_all()

2015-12-02 Thread Michael Ellerman
On Thu, 2015-10-29 at 11:44 +1100, Anton Blanchard wrote: > Create a single function that gives everything up (FP, VMX, VSX, SPE). > Doing this all at once means we only do one MSR write. > > A context switch microbenchmark using yield(): > > http://ozlabs.org/~anton/junkcode/context_switch2.c

[PATCH 16/19] powerpc: create giveup_all()

2015-10-28 Thread Anton Blanchard
Create a single function that gives everything up (FP, VMX, VSX, SPE). Doing this all at once means we only do one MSR write. A context switch microbenchmark using yield(): http://ozlabs.org/~anton/junkcode/context_switch2.c ./context_switch2 --test=yield --fp --altivec --vector 0 0 shows an

[PATCH 16/19] powerpc: create giveup_all()

2015-10-27 Thread Anton Blanchard
Create a single function that gives everything up (FP, VMX, VSX, SPE). Doing this all at once means we only do one MSR write. A context switch microbenchmark using yield(): http://ozlabs.org/~anton/junkcode/context_switch2.c ./context_switch2 --test=yield --fp --altivec --vector 0 0 shows an