[S390] Add dynamic size check for usercopy functions.
Use a wrapper for copy_to/from_user to chose the best usercopy method. The mvcos instruction is better for sizes greater than 256 bytes, if mvcos is not available a page table walk is better for sizes greater than 1024 bytes. Also removed the redundant copy_to/from_user_std_small functions. Signed-off-by:Gerald Schaefer <geraldsc@de.ibm.com> Signed-off-by:
Martin Schwidefsky <schwidefsky@de.ibm.com>
Showing
- arch/s390/lib/Makefile 1 addition, 1 deletionarch/s390/lib/Makefile
- arch/s390/lib/uaccess_mvcos.c 21 additions, 6 deletionsarch/s390/lib/uaccess_mvcos.c
- arch/s390/lib/uaccess_pt.c 153 additions, 0 deletionsarch/s390/lib/uaccess_pt.c
- arch/s390/lib/uaccess_std.c 15 additions, 52 deletionsarch/s390/lib/uaccess_std.c
Loading
Please register or sign in to comment