https://bugs.linaro.org/show_bug.cgi?id=3249

            Bug ID: 3249
           Summary: odp_cpu_hz() does not work on all Linux distros
           Product: OpenDataPlane - linux- generic reference
           Version: v1.15.0.0
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: General ODP
          Assignee: maxim.uva...@linaro.org
          Reporter: mikko.kuri...@nokia.com
                CC: lng-odp@lists.linaro.org
  Target Milestone: ---

All Linux distributions does not provide /sys/devices/system/cpu/cpuX/cpufreq/.
This is needed for example by function odp_cpu_hz() and this function will
return 0. This was working until change 'linux-gen: system: correctly set CPU
frequency' (e1c46f8e296a730ed27141a33189185bb7dfd1b1) was made. We have seen
problem with following Linuxes:

x86:
CentOS Linux release 7.2.1511
Kernel version 4.9.0-1.el7.elrepo.x86_64

Arria10 board from Intel with ARM A9 core:
Kernel version linaro-developer 4.1.22-ltsi

Steps to Reproduce: 
1. Call odp_cpu_hz() on Linux system that does not have
/sys/devices/system/cpu/cpuX/cpufreq/ entry in sysfs.

Actual Results: Function will return 0

Expected Results: Function should return CPU freq

Additional Information:
Not sure is /sys/devices/system/cpu/cpuX/cpufreq/ 'de facto' in Linux
distributions or not. If it is considered is a de facto standard it would be
good to list required kernel configuration flags and kernel versions to enable
this feature.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to