Message ID | 1425048954-29305-1-git-send-email-stuart.haslam@linaro.org |
---|---|
State | Accepted |
Commit | f41fcb585af6a9e59aed6b107cabe439716a329d |
Headers | show |
Merged, Maxim. On 02/27/2015 05:55 PM, Stuart Haslam wrote: > Fix for https://bugs.linaro.org/show_bug.cgi?id=1289 > > 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(-) > > diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c > index de52d49..6b6c723 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; > > + sysinfo->huge_page_size = huge_page_size(); > + > /* Dummy values */ > sysinfo->cpu_hz = 1400000000; > sysinfo->cache_line_size = 64;
diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c index de52d49..6b6c723 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; + sysinfo->huge_page_size = huge_page_size(); + /* Dummy values */ sysinfo->cpu_hz = 1400000000; sysinfo->cache_line_size = 64;
Fix for https://bugs.linaro.org/show_bug.cgi?id=1289 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(-)