- use default MEMSIZE in check_for_ppc
authorAdrian Schröter <adrian@suse.de>
Thu, 30 Aug 2012 14:38:11 +0000 (16:38 +0200)
committerAdrian Schröter <adrian@suse.de>
Thu, 30 Aug 2012 14:39:00 +0000 (16:39 +0200)
build

diff --git a/build b/build
index 67368e1..ab7a3c5 100755 (executable)
--- a/build
+++ b/build
@@ -765,7 +765,7 @@ check_for_ppc()
                exit 1
            fi
             PAGES_FREE=$(cat /sys/kernel/mm/hugepages/hugepages-16384kB/free_hugepages)
-            PAGES_REQ=$(( $MEMSIZE / 16 ))
+            PAGES_REQ=$(( ${MEMSIZE:-64} / 16 ))
            if [ "$PAGES_FREE" -lt "$PAGES_REQ" ];then
                echo "please adjust nr_hugepages"
                exit 1