s390/hugetlb: add hugepages_supported define
authorDominik Dingel <[email protected]>
Fri, 17 Jul 2015 23:23:39 +0000 (16:23 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Jul 2015 23:39:52 +0000 (16:39 -0700)
commit7f9be77555bb2e52de84e9dddf7b4eb20cc6e171
tree2d096255acd6bd7c08b6a68e5253c227d76764d9
parent2531c8cf56a640cd7d17057df8484e570716a450
s390/hugetlb: add hugepages_supported define

On s390 we only can enable hugepages if the underlying hardware/hypervisor
also does support this.  Common code now would assume this to be
signaled by setting HPAGE_SHIFT to 0.  But on s390, where we only
support one hugepage size, there is a link between HPAGE_SHIFT and
pageblock_order.

So instead of setting HPAGE_SHIFT to 0, we will implement the check for
the hardware capability.

Signed-off-by: Dominik Dingel <[email protected]>
Acked-by: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Michael Holzheu <[email protected]>
Cc: Gerald Schaefer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/s390/include/asm/hugetlb.h