diff options
author | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2015-01-21 15:15:07 +0200 |
---|---|---|
committer | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2015-01-22 03:47:03 +0200 |
commit | 4dfba97d23dc098a2c7c27e7d9d4b8216be1c33f (patch) | |
tree | b65f701f8d898a0de7342e305694387eb7cdd0ce /idlestat.c | |
parent | 0b139fe78d33c14158667fbf34f00fce6defea24 (diff) |
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 <tuukka.tikkanen@linaro.org>
Diffstat (limited to 'idlestat.c')
-rw-r--r-- | idlestat.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |