From: Martin Schwidefsky Date: Mon, 2 Jun 2014 12:53:57 +0000 (+0200) Subject: s390/uaccess: always load the kernel ASCE after task switch X-Git-Tag: omap-for-v3.17/soc-cleanup~65^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b13505607823bb9a212eb9410669ecf2bc2615;p=pandora-kernel.git s390/uaccess: always load the kernel ASCE after task switch This patch fixes a problem introduced with git commit beef560b4cdfafb2 "s390/uaccess: simplify control register updates". The switch_mm function is not called if the next process is a kernel thread without an attached mm or is a nop if the mm does not change. But CR1 still needs to be loaded with the kernel ASCE in case the code returns to a uaccess function that uses the secondary space mode. In addition move the set_fs call from finish_arch_switch to finish_arch_post_lock_switch and then remove finish_arch_switch. Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed