-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f53eca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no /cpufreq directory under above directory. According to source code you are trying to get cpuinfo_[max|min|cur]_freq. But In my system, There are no "/cpufreq" directory under "/sys/devices/system/cpu/cpu*" as below. It might has occurred error on for loop.
pwd
/sys/devices/system/cpu/cpu0
ls -al
total 0
drwxr-xr-x. 8 root root 0 Feb 27 00:06 .
drwxr-xr-x. 95 root root 0 Feb 27 00:07 ..
drwxr-xr-x. 6 root root 0 Apr 16 14:29 cache
drwxr-xr-x. 6 root root 0 Apr 16 14:29 cpuidle
-r--------. 1 root root 4096 Apr 16 14:29 crash_notes
-r--------. 1 root root 4096 Apr 16 14:29 crash_notes_size
lrwxrwxrwx. 1 root root 0 Apr 16 14:29 driver -> ../../../../bus/cpu/drivers/processor
lrwxrwxrwx. 1 root root 0 Apr 16 14:29 firmware_node -> ../../../LNXSYSTM:00/device:00/ACPI0004:00/LNXCPU:00
drwxr-xr-x. 2 root root 0 Apr 16 14:29 microcode
lrwxrwxrwx. 1 root root 0 Apr 16 14:29 node0 -> ../../node/node0
-rw-r--r--. 1 root root 4096 Apr 16 14:29 online
drwxr-xr-x. 2 root root 0 Apr 16 14:29 power
lrwxrwxrwx. 1 root root 0 Apr 16 14:29 subsystem -> ../../../../bus/cpu
drwxr-xr-x. 2 root root 0 Apr 16 14:29 thermal_throttle
drwxr-xr-x. 2 root root 0 Jan 8 14:15 topology
-rw-r--r--. 1 root root 4096 Apr 16 14:29 uevent
f53eca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What operating system, what kernel do you use?
f53eca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my system info.
cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
uname -r
3.10.0-862.14.4.el7.x86_64