Message ID | 1425033659-5207-1-git-send-email-stuart.haslam@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index de52d49..3b044f1 100644 --- a/platform/linux-generic/odp_system_info.c +++ b/platform/linux-generic/odp_system_info.c @@ -86,6 +86,7 @@ static int systemcpu_cache_line_size(void) return size; } +#endif static int huge_page_size(void) @@ -116,7 +117,6 @@ static int huge_page_size(void) return size*1024; } -#endif /* @@ -334,6 +334,8 @@ static int systemcpu(odp_system_info_t *sysinfo) sysinfo->cpu_count = ret; + odp_system_info.huge_page_size = huge_page_size(); + /* Dummy values */ sysinfo->cpu_hz = 1400000000; sysinfo->cache_line_size = 64;
The odp_system test is failing for arm and arm64 because the implementation makes no attempt to determine availability of hugepages. Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org> --- platform/linux-generic/odp_system_info.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)