aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);