tools/power/x86/intel-speed-select: Output success/failed for command output
authorPrarit Bhargava <prarit@redhat.com>
Thu, 5 Sep 2019 12:03:10 +0000 (08:03 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Sep 2019 18:19:13 +0000 (21:19 +0300)
commit522586a9d5c32b5d7569237eebbfd8241f196419
treea9b22036c35858dbc9bba392ad45437d66f9e6f4
parent49aed155ec1b07f8820cceec7317c597a6f69c6e
tools/power/x86/intel-speed-select: Output success/failed for command output

Command output has confusing data, returning "0" on success.  For example

|# ./intel-speed-select -c 14 turbo-freq enable
Intel(R) Speed Select Technology
Executing on CPU model:106[0x6a]
 package-1
   die-0
     cpu-14
       turbo-freq
         enable:0

To avoid confusion change the command output to 'success' or 'failed'.

v2: Remove help output line.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: David Arcari <darcari@redhat.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c
tools/power/x86/intel-speed-select/isst-display.c