diff options
author | paul <paul@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2011-02-09 13:02:33 +0000 |
---|---|---|
committer | paul <paul@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2011-02-09 13:02:33 +0000 |
commit | 865ce23ece061b87ff2cd954fb2ea69c0d42e559 (patch) | |
tree | a56201c2f99b0fbaa60cbd66ed5383c29cd76162 /config/os | |
parent | e68790ed740b1add308d9f992a70d8e1f6106272 (diff) | |
download | jack1-865ce23ece061b87ff2cd954fb2ea69c0d42e559.tar.gz |
fix freqscaling test (ported from ardour)
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4121 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'config/os')
-rw-r--r-- | config/os/gnu-linux/systemtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/os/gnu-linux/systemtest.c b/config/os/gnu-linux/systemtest.c index 534f287..985d5a8 100644 --- a/config/os/gnu-linux/systemtest.c +++ b/config/os/gnu-linux/systemtest.c @@ -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)) { |