s390: add optimized array_index_mask_nospec
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Apr 2018 05:36:29 +0000 (07:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 09:33:14 +0000 (11:33 +0200)
commit2ae89b86a77fd96ca9a20236730bf599becc7550
tree6b5d0f3b1fab111e218e54e226045c0a3d1d9833
parent2ae8b68382ce0c5e911090b502e0fda14191c730
s390: add optimized array_index_mask_nospec

[ Upstream commit e2dd833389cc4069a96b57bdd24227b5f52288f5 ]

Add an optimized version of the array_index_mask_nospec function for
s390 based on a compare and a subtract with borrow.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/asm/barrier.h