Home
last modified time | relevance | path

Searched refs:default_hsize (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c793 unsigned long default_hsize; in TEST_F() local
798 default_hsize = file_read_ulong("/proc/meminfo", "Hugepagesize:"); in TEST_F()
799 if (default_hsize < 0 || default_hsize*1024 < default_hsize) in TEST_F()
801 default_hsize = default_hsize*1024; /* KB to B */ in TEST_F()
803 size = ALIGN(TWOMEG, default_hsize); in TEST_F()
1573 unsigned long default_hsize; in TEST_F() local
1581 default_hsize = file_read_ulong("/proc/meminfo", "Hugepagesize:"); in TEST_F()
1582 if (default_hsize < 0 || default_hsize*1024 < default_hsize) in TEST_F()
1584 default_hsize = default_hsize*1024; /* KB to B */ in TEST_F()
1586 size = ALIGN(TWOMEG, default_hsize); in TEST_F()