diff options
author | Gerald Schaefer <geraldsc@de.ibm.com> | 2006-09-20 15:59:44 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-20 15:59:44 +0200 |
commit | 6c2a9e6df60478e712f3c3d98b5047778a82a3d7 (patch) | |
tree | 6768eb3991f4f1616b211a21ccf1b8e27820ae79 /include/asm-s390 | |
parent | d02765d1af743567398eb6d523dea0ba5e5e7e8e (diff) | |
download | linux-6c2a9e6df60478e712f3c3d98b5047778a82a3d7.tar.bz2 |
[S390] Use alternative user-copy operations for new hardware.
This introduces new user-copy operations which are optimized for
copying more than 256 Bytes on new hardware.
Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/setup.h | 2 | ||||
-rw-r--r-- | include/asm-s390/uaccess.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-s390/setup.h b/include/asm-s390/setup.h index 00c03e46689b..f1959732b6fd 100644 --- a/include/asm-s390/setup.h +++ b/include/asm-s390/setup.h @@ -44,10 +44,12 @@ extern unsigned long machine_flags; #define MACHINE_HAS_IEEE (machine_flags & 2) #define MACHINE_HAS_CSP (machine_flags & 8) #define MACHINE_HAS_DIAG44 (1) +#define MACHINE_HAS_MVCOS (0) #else /* __s390x__ */ #define MACHINE_HAS_IEEE (1) #define MACHINE_HAS_CSP (1) #define MACHINE_HAS_DIAG44 (machine_flags & 32) +#define MACHINE_HAS_MVCOS (machine_flags & 512) #endif /* __s390x__ */ diff --git a/include/asm-s390/uaccess.h b/include/asm-s390/uaccess.h index 39a2716ae188..e2047b0c9092 100644 --- a/include/asm-s390/uaccess.h +++ b/include/asm-s390/uaccess.h @@ -100,6 +100,7 @@ struct uaccess_ops { extern struct uaccess_ops uaccess; extern struct uaccess_ops uaccess_std; +extern struct uaccess_ops uaccess_mvcos; static inline int __put_user_fn(size_t size, void __user *ptr, void *x) { |