OSDN Git Service

tools/power turbostat: fix -S on UP systems
authorLen Brown <len.brown@intel.com>
Fri, 20 Jul 2018 18:47:03 +0000 (14:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:18:34 +0000 (09:18 +0200)
commit1fa903cb3b09af0c32888fbf8dde4d3def60fb6f
treeb9b58f158515757aeae545b4476fa0b69c972b3d
parent801a35b0963c1d1af581486ac0461ad41cea6a6f
tools/power turbostat: fix -S on UP systems

[ Upstream commit 9d83601a9cc1884d1b5706ee2acc661d558c6838 ]

The -S (system summary) option failed to print any data on a 1-processor system.

Reported-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/power/x86/turbostat/turbostat.c