]> Git Repo - linux.git/commitdiff
cpupower: cpupower info -b should return 0 on success, not the perf bias value
authorThomas Renninger <[email protected]>
Tue, 13 May 2014 10:41:44 +0000 (12:41 +0200)
committerRafael J. Wysocki <[email protected]>
Fri, 16 May 2014 22:36:37 +0000 (00:36 +0200)
Signed-off-by: Thomas Renninger <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
tools/power/cpupower/utils/cpupower-info.c

index 3f68632c28c7bccc02f2d0a3266288e4a7bfd74a..0ac25772bf63505287679ab4e3db1d29bf2ddec7 100644 (file)
@@ -125,11 +125,12 @@ int cmd_info(int argc, char **argv)
                if (params.perf_bias) {
                        ret = msr_intel_get_perf_bias(cpu);
                        if (ret < 0) {
-                               printf(_("Could not read perf-bias value\n"));
-                               break;
+                               fprintf(stderr,
+                       _("Could not read perf-bias value[%d]\n"), ret);
+                               exit(EXIT_FAILURE);
                        } else
                                printf(_("perf-bias: %d\n"), ret);
                }
        }
-       return ret;
+       return 0;
 }
This page took 0.055101 seconds and 4 git commands to generate.