Commit a8a934e4 authored by Martin Schwidefsky's avatar Martin Schwidefsky

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
...@@ -64,7 +64,7 @@ void update_cr_regs(struct task_struct *task) ...@@ -64,7 +64,7 @@ void update_cr_regs(struct task_struct *task)
if (task->thread.per_flags & PER_FLAG_NO_TE) if (task->thread.per_flags & PER_FLAG_NO_TE)
cr_new &= ~(1UL << 55); cr_new &= ~(1UL << 55);
if (cr_new != cr) 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. */ /* Set or clear transaction execution TDC bits 62 and 63. */
__ctl_store(cr, 2, 2); __ctl_store(cr, 2, 2);
cr_new = cr & ~3UL; cr_new = cr & ~3UL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment