test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] fix bug that check with wrong hugepage number
@ 2015-07-28  2:00 Yong Liu
  0 siblings, 0 replies; only message in thread
From: Yong Liu @ 2015-07-28  2:00 UTC (permalink / raw)
  To: dts

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

Signed-off-by: Marvin Liu <yong.liu@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-28  2:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-28  2:00 [dts] [PATCH] fix bug that check with wrong hugepage number Yong Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).