diff options
author | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2015-01-21 15:09:14 +0200 |
---|---|---|
committer | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2015-01-22 03:47:03 +0200 |
commit | 0b139fe78d33c14158667fbf34f00fce6defea24 (patch) | |
tree | 069e6c10e5019046c9581a35bb29228ca8096dc9 | |
parent | 7f365110226a5cb350df98dc7270e851093c8668 (diff) |
Energy model: Remove unused parameter options
Function calculate_energy_model (no longer) uses the program
options structure. It may have been used earlier for the
verbosity control in some messages, but that system has been
reworked. Remove the unused paramter.
Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
-rw-r--r-- | energy_model.c | 2 | ||||
-rw-r--r-- | energy_model.h | 2 | ||||
-rw-r--r-- | idlestat.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/energy_model.c b/energy_model.c index 228fe83..2515de8 100644 --- a/energy_model.c +++ b/energy_model.c @@ -330,7 +330,7 @@ static struct pstate_energy_info *find_pstate_energy_info(const unsigned int clu #define US_TO_SEC(US) (US / 1e6) -void calculate_energy_consumption(struct cpu_topology *cpu_topo, struct program_options *options) +void calculate_energy_consumption(struct cpu_topology *cpu_topo) { struct cpu_physical *s_phy; struct cpu_core *s_core; diff --git a/energy_model.h b/energy_model.h index 592e9b1..45b0c8e 100644 --- a/energy_model.h +++ b/energy_model.h @@ -30,6 +30,6 @@ struct program_options; /* Defined elsewhere */ struct cpu_topology; int parse_energy_model(struct program_options *); -void calculate_energy_consumption(struct cpu_topology *cpu_topo, struct program_options *); +void calculate_energy_consumption(struct cpu_topology *cpu_topo); #endif @@ -1578,7 +1578,7 @@ int main(int argc, char *argv[], char *const envp[]) } if (options.energy_model_filename) - calculate_energy_consumption(cpu_topo, &options); + calculate_energy_consumption(cpu_topo); output_handler->close_report_file(report_data); |