Browse Source

fix freqscaling test (ported from ardour)

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4121 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.120.1
paul 15 years ago
parent
commit
865ce23ece
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      config/os/gnu-linux/systemtest.c

+ 2
- 2
config/os/gnu-linux/systemtest.c View File

@@ -110,8 +110,8 @@ int system_uses_frequencyscaling() {
while (!done) {
(void) snprintf(filename, 256, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor", cpu);
if (0<read_string(filename, buf, 256)) {
if ((0!=strcmp("performance", buf)) &&
(0!=strcmp("powersafe", buf))) {
if ((0!=strncmp("performance", buf,11)) &&
(0!=strncmp("powersafe", buf,9))) {
// So it's neither the "performance" nor the "powersafe" governor
(void) snprintf(filename, 256, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_min_freq", cpu);
if (read_int(filename, &min)) {


Loading…
Cancel
Save