diff options
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 | ||