aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/process.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-06 19:48:59 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-06 19:48:59 -0400
commitfff34b3412b9401a76ba9d021db1bd91cb0e02b6 (patch)
tree870ed2d1555004e7939d15b5099017aae61c97b8 /arch/powerpc/kernel/process.c
parent28e1e58fb668e262648fb8ee8a24154633f40507 (diff)
parent636802ef96eebe279b22ad9f9dacfe29291e45c7 (diff)
Merge branch 'merge' into next
Brings in various bug fixes from 3.6-rcX
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r--arch/powerpc/kernel/process.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 8e701a4ed36b..2e743de545d0 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -804,16 +804,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
804#endif /* CONFIG_PPC_STD_MMU_64 */ 804#endif /* CONFIG_PPC_STD_MMU_64 */
805#ifdef CONFIG_PPC64 805#ifdef CONFIG_PPC64
806 if (cpu_has_feature(CPU_FTR_DSCR)) { 806 if (cpu_has_feature(CPU_FTR_DSCR)) {
807 if (current->thread.dscr_inherit) { 807 p->thread.dscr_inherit = current->thread.dscr_inherit;
808 p->thread.dscr_inherit = 1; 808 p->thread.dscr = current->thread.dscr;
809 p->thread.dscr = current->thread.dscr;
810 } else if (0 != dscr_default) {
811 p->thread.dscr_inherit = 1;
812 p->thread.dscr = dscr_default;
813 } else {
814 p->thread.dscr_inherit = 0;
815 p->thread.dscr = 0;
816 }
817 } 809 }
818#endif 810#endif
819 811