From: Anton Blanchard Date: Mon, 3 Sep 2012 16:49:47 +0000 (+0000) Subject: powerpc: Fix DSCR inheritance in copy_thread() X-Git-Tag: v3.6-rc5~13^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1021cb268b3025573c4811f1dee4a11260c4507b;p=pandora-kernel.git powerpc: Fix DSCR inheritance in copy_thread() If the default DSCR is non zero we set thread.dscr_inherit in copy_thread() meaning the new thread and all its children will ignore future updates to the default DSCR. This is not intended and is a change in behaviour that a number of our users have hit. We just need to inherit thread.dscr and thread.dscr_inherit from the parent which ends up being much simpler. This was found with the following test case: http://ozlabs.org/~anton/junkcode/dscr_default_test.c Signed-off-by: Anton Blanchard Cc: # 3.0+ Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed