• Abhishek Goel's avatar
    cpupower : Handle set and info subcommands correctly · d80a4ac2
    Abhishek Goel authored
    Cpupower tool has set and info options which are being used only by
    x86 machines. This patch removes support for these two subcommands
    from cpupower utility for POWER. Thus, these two subcommands will now be
    available only for intel.
    This removes the ambiguous error message while using set option in case
    of using non-intel systems.
    
    Without this patch on a POWER system:
    
    root@ubuntu:~# cpupower info
    System does not support Intel's performance bias setting
    
    root@ubuntu:~# cpupower set -b 10
    Error setting perf-bias value on CPU
    
    With this patch on a POWER box:
    
    root@ubuntu:~# cpupower info
    Subcommand not supported on POWER
    
    Same result for set subcommand.
    This patch does not affect results on a intel box.
    Signed-off-by: default avatarAbhishek Goel <huntbag@linux.vnet.ibm.com>
    Acked-by: default avatarThomas Renninger <trenn@suse.de>
    Reviewed-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    d80a4ac2
cpupower-info.c 2.3 KB