powerpc: Fix DSCR inheritance over fork()
Michael Ellerman
mpe at ellerman.id.au
Mon Dec 14 20:47:50 AEDT 2015
On Wed, 2015-09-12 at 09:11:47 UTC, Anton Blanchard wrote:
> Two DSCR tests have a hack in them:
>
> /*
> * XXX: Force a context switch out so that DSCR
> * current value is copied into the thread struct
> * which is required for the child to inherit the
> * changed value.
> */
> sleep(1);
>
> We should not be working around this in the testcase, it is a kernel bug.
> Fix it by copying the current DSCR to the child, instead of what we
> had in the thread struct at last context switch.
>
> Signed-off-by: Anton Blanchard <anton at samba.org>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/db1231dcdb4dc6cdcbdef0ba
cheers
More information about the Linuxppc-dev
mailing list