diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-04 01:07:36 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-04 01:07:36 +0300 |
commit | d97561f461e4cb5b2e170bc33b466cffbddc8719 (patch) | |
tree | 7be9749e40f2db48c0cebbc1d0eeadbda36c7ce9 /tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c | |
parent | 4afbce7b39d2b326616f0a87a6246b1383237868 (diff) | |
parent | d0e4a193c33adaa4f91128d5393aa3589c2f3e9e (diff) | |
download | linux-d97561f461e4cb5b2e170bc33b466cffbddc8719.tar.xz |
Merge branch 'pm-tools'
* pm-tools:
tools/power/cpupower: allow running without cpu0
pm-graph: package makefile and man pages
pm-graph: AnalyzeBoot v2.1
pm-graph: AnalyzeSuspend v4.7
Diffstat (limited to 'tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c')
-rw-r--r-- | tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c b/tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c index ebeaba6571a3..f794d6bbb7e9 100644 --- a/tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c +++ b/tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c @@ -123,7 +123,7 @@ static int hsw_ext_start(void) previous_count[num][cpu] = val; } } - hsw_ext_get_count(TSC, &tsc_at_measure_start, 0); + hsw_ext_get_count(TSC, &tsc_at_measure_start, base_cpu); return 0; } @@ -132,7 +132,7 @@ static int hsw_ext_stop(void) unsigned long long val; int num, cpu; - hsw_ext_get_count(TSC, &tsc_at_measure_end, 0); + hsw_ext_get_count(TSC, &tsc_at_measure_end, base_cpu); for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { for (cpu = 0; cpu < cpu_count; cpu++) { |