[dts] [PATCH] fix bug that check with wrong hugepage number

Yong Liu yong.liu at intel.com
Tue Jul 28 04:00:53 CEST 2015


From: Marvin Liu <yong.liu at intel.com>

Signed-off-by: Marvin Liu <yong.liu at intel.com>

diff --git a/framework/dut.py b/framework/dut.py
index f93d696..b2d8c7f 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -272,7 +272,7 @@ class Dut(Crb):
 
             if total_huge_pages != arch_huge_pages:
                 # for i686 and x86_x32 just use hugepage from socket 0
-                if hugepages != 4096:
+                if arch_huge_pages != 4096:
                     self.set_huge_pages(arch_huge_pages, numa=0)
                     print dts.GREEN("Hugepage allocated from socket 0, please take care!!!")
                 else:
-- 
1.9.3



More information about the dts mailing list