s390/uaccess: use __builtin_expect for get_user/put_user
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 13 Jun 2016 08:17:20 +0000 (10:17 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:25 +0000 (15:58 +0200)
commitee64baf4ea3b7affb7e325bb3d188515ec4bb66e
treee99c82a4efe621de6d6683fc5af366aef5d807ca
parentb8ac5e2f4d8659961d2e0aea5475a07fb4eeec2d
s390/uaccess: use __builtin_expect for get_user/put_user

We always expect that get_user and put_user return with zero. Give the
compiler a hint so it can slightly optimize the code and avoid
branches.
This is the same what x86 got with commit a76cf66e948a ("x86/uaccess:
Tell the compiler that uaccess is unlikely to fault").

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/uaccess.h