diff options
Diffstat (limited to 'desktop/icewm/patches/acpustatus_read_cpuinfo_cur_freq.patch')
-rw-r--r-- | desktop/icewm/patches/acpustatus_read_cpuinfo_cur_freq.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/icewm/patches/acpustatus_read_cpuinfo_cur_freq.patch b/desktop/icewm/patches/acpustatus_read_cpuinfo_cur_freq.patch new file mode 100644 index 0000000000..580a64d58f --- /dev/null +++ b/desktop/icewm/patches/acpustatus_read_cpuinfo_cur_freq.patch @@ -0,0 +1,11 @@ +--- src/acpustatus.cc.orig 2010-10-31 17:09:36.000000000 +0300 ++++ src/acpustatus.cc 2013-08-26 00:38:16.868170497 +0400 +@@ -323,7 +323,7 @@ + int fd; + float cpufreq = 0; + +- sprintf(namebuf, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", cpu); ++ sprintf(namebuf, "/sys/devices/system/cpu/cpu%d/cpufreq/cpuinfo_cur_freq", cpu); + fd = open(namebuf, O_RDONLY); + if (fd != -1) { + int len = read(fd, buf, sizeof(buf) - 1); |