From 4dfba97d23dc098a2c7c27e7d9d4b8216be1c33f Mon Sep 17 00:00:00 2001 From: Tuukka Tikkanen Date: Wed, 21 Jan 2015 15:15:07 +0200 Subject: Remove unused parameter cpu from write_cstate_info The parameter cpu is not used in write_cstate_info. Note: The function is intended as an abstraction for writing cstate information to trace file. As the trace file format may change in future or multiple output formats may be forthcoming, this function is an abstraction for storing the state. Some future format may require the cpu number, so this parameter may be reintroduced later. However, as we currently do not know whether it is needed or not, it can be removed. Signed-off-by: Tuukka Tikkanen --- idlestat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idlestat.c b/idlestat.c index d8a9ba5..1e4cfcf 100644 --- a/idlestat.c +++ b/idlestat.c @@ -916,7 +916,7 @@ static int store_irq(int cpu, int irqid, char *irqname, return 0; } -static void write_cstate_info(FILE *f, int cpu, char *name, int target) +static void write_cstate_info(FILE *f, char *name, int target) { fprintf(f, "\t%s\n", name); fprintf(f, "\t%d\n", target); @@ -932,7 +932,7 @@ void output_cstate_info(FILE *f, int nrcpus) { for (i=0; i < nrcpus; i++) { fprintf(f, "cpuid %d:\n", i); for (j=0; j < MAXCSTATE ; j++) { - write_cstate_info(f, i, cstates[i].cstate[j].name, + write_cstate_info(f, cstates[i].cstate[j].name, cstates[i].cstate[j].target_residency); } } -- cgit v1.2.3