Please sign in to comment.
cpufreq: only try to open files under cpuX
There are called many useless 'open' syscalls that always fail, like: open("/sys/devices/system/cpu/uevent/cpufreq/scaling_governor", O_RDONLY) = -1 ENOTDIR (Not a directory) This patch filters them to 'likely' patterns, like e.g.: /sys/devices/system/cpu/cpuX/cpufreq/scaling_governor, where X is string starting with digit. For match cases it will add only small overhead. Originally reported as: https://bugzilla.redhat.com/show_bug.cgi?id=886185 Signed-off-by: Jaroslav Škarvada <firstname.lastname@example.org>
- Loading branch information...
Showing with 12 additions and 11 deletions.