Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8a934e4 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

s390: fix control register update



The git commit c63badeb
"s390: optimize control register update" broke the update for
control register 0. After the update do the lctlg from the correct
value.

Cc: <stable@vger.kernel.org> # 3.14
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 75ff24fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ void update_cr_regs(struct task_struct *task)
		if (task->thread.per_flags & PER_FLAG_NO_TE)
			cr_new &= ~(1UL << 55);
		if (cr_new != cr)
			__ctl_load(cr, 0, 0);
			__ctl_load(cr_new, 0, 0);
		/* Set or clear transaction execution TDC bits 62 and 63. */
		__ctl_store(cr, 2, 2);
		cr_new = cr & ~3UL;