diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-03 18:07:36 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-03 18:07:36 -0400 |
| commit | d97561f461e4cb5b2e170bc33b466cffbddc8719 (patch) | |
| tree | 7be9749e40f2db48c0cebbc1d0eeadbda36c7ce9 /tools/power/cpupower/utils/helpers/helpers.h | |
| parent | 4afbce7b39d2b326616f0a87a6246b1383237868 (diff) | |
| parent | d0e4a193c33adaa4f91128d5393aa3589c2f3e9e (diff) | |
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/helpers/helpers.h')
| -rw-r--r-- | tools/power/cpupower/utils/helpers/helpers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/power/cpupower/utils/helpers/helpers.h b/tools/power/cpupower/utils/helpers/helpers.h index 799a18be60aa..41da392be448 100644 --- a/tools/power/cpupower/utils/helpers/helpers.h +++ b/tools/power/cpupower/utils/helpers/helpers.h | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | /* Internationalization ****************************/ | 34 | /* Internationalization ****************************/ |
| 35 | 35 | ||
| 36 | extern int run_as_root; | 36 | extern int run_as_root; |
| 37 | extern int base_cpu; | ||
| 37 | extern struct bitmask *cpus_chosen; | 38 | extern struct bitmask *cpus_chosen; |
| 38 | 39 | ||
| 39 | /* Global verbose (-d) stuff *********************************/ | 40 | /* Global verbose (-d) stuff *********************************/ |
| @@ -87,11 +88,11 @@ struct cpupower_cpu_info { | |||
| 87 | * | 88 | * |
| 88 | * Extract CPU vendor, family, model, stepping info from /proc/cpuinfo | 89 | * Extract CPU vendor, family, model, stepping info from /proc/cpuinfo |
| 89 | * | 90 | * |
| 90 | * Returns 0 on success or a negativ error code | 91 | * Returns 0 on success or a negative error code |
| 91 | * Only used on x86, below global's struct values are zero/unknown on | 92 | * Only used on x86, below global's struct values are zero/unknown on |
| 92 | * other archs | 93 | * other archs |
| 93 | */ | 94 | */ |
| 94 | extern int get_cpu_info(unsigned int cpu, struct cpupower_cpu_info *cpu_info); | 95 | extern int get_cpu_info(struct cpupower_cpu_info *cpu_info); |
| 95 | extern struct cpupower_cpu_info cpupower_cpu_info; | 96 | extern struct cpupower_cpu_info cpupower_cpu_info; |
| 96 | /* cpuid and cpuinfo helpers **************************/ | 97 | /* cpuid and cpuinfo helpers **************************/ |
| 97 | 98 | ||
