]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: use switch vs jump table in priv.c
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 8 Apr 2016 15:52:39 +0000 (17:52 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 14 Feb 2018 13:53:43 +0000 (13:53 +0000)
commit95c142ece7e0ff39adb9398faf3ee47b992db186
tree9fcaced91f8cf6d960154d04e69e5ed9b7fe00cf
parent976b76b7f156462f8e743996c64d5063a0717b11
KVM: s390: use switch vs jump table in priv.c

Instead of having huge jump tables for function selection,
let's use normal switch/case statements for the instruction
handlers in priv.c

This allows the compiler to make the right decision depending
on the situation (e.g. avoid jump-tables for thunks).

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/priv.c