aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuukka Tikkanen <tuukka.tikkanen@linaro.org>2015-01-21 15:09:14 +0200
committerTuukka Tikkanen <tuukka.tikkanen@linaro.org>2015-01-22 03:47:03 +0200
commit0b139fe78d33c14158667fbf34f00fce6defea24 (patch)
tree069e6c10e5019046c9581a35bb29228ca8096dc9
parent7f365110226a5cb350df98dc7270e851093c8668 (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.c2
-rw-r--r--energy_model.h2
-rw-r--r--idlestat.c2
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
diff --git a/idlestat.c b/idlestat.c
index 6f28caf..d8a9ba5 100644
--- a/idlestat.c
+++ b/idlestat.c
@@ -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);