aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/lib
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2014-01-24 07:03:42 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-02-21 02:50:15 -0500
commitca04ddbf537d30b25f6e240b70f19be35fac4313 (patch)
tree7c86d465aa120169171390bf983e34f3533dc108 /arch/s390/lib
parent211deca6bf413560b562d69748ebc4df5d80d65e (diff)
s390/setup: get rid of MACHINE_HAS_MVCOS machine flag
MACHINE_HAS_MVCOS is used exactly once when the machine is brought up. There is no need to cache the flag in the machine_flags. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r--arch/s390/lib/uaccess_mvcos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/lib/uaccess_mvcos.c b/arch/s390/lib/uaccess_mvcos.c
index 8c01f3aaf95c..e2685ff2ec4b 100644
--- a/arch/s390/lib/uaccess_mvcos.c
+++ b/arch/s390/lib/uaccess_mvcos.c
@@ -10,6 +10,7 @@
10#include <linux/errno.h> 10#include <linux/errno.h>
11#include <linux/init.h> 11#include <linux/init.h>
12#include <linux/mm.h> 12#include <linux/mm.h>
13#include <asm/facility.h>
13#include <asm/uaccess.h> 14#include <asm/uaccess.h>
14#include <asm/futex.h> 15#include <asm/futex.h>
15#include "uaccess.h" 16#include "uaccess.h"
@@ -242,7 +243,7 @@ EXPORT_SYMBOL(__strncpy_from_user);
242 243
243static int __init uaccess_init(void) 244static int __init uaccess_init(void)
244{ 245{
245 if (!MACHINE_HAS_MVCOS) 246 if (IS_ENABLED(CONFIG_32BIT) || !test_facility(27))
246 static_key_slow_dec(&have_mvcos); 247 static_key_slow_dec(&have_mvcos);
247 return 0; 248 return 0;
248} 249}