X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=idletime.c;h=2f59f5104b4152c7b156a1bd255f898eb1ba7c72;hp=8762c8565ea8e66116a7e98ed5b544ddc3b1d624;hb=de5ed0e4d398bc9d4576f9b2b82d7686989c27e1;hpb=ec2ea18e87fad6c42d6875cd4ee1bb25ef9b4627 diff --git a/idletime.c b/idletime.c index 8762c856..2f59f510 100644 --- a/idletime.c +++ b/idletime.c @@ -397,7 +397,7 @@ static double fio_idle_prof_cpu_stat(int cpu) return p * 100.0; } -static void fio_idle_prof_cleanup(void) +void fio_idle_prof_cleanup(void) { if (ipc.ipts) { free(ipc.ipts); @@ -471,10 +471,6 @@ void show_idle_prof_stats(int output, struct json_object *parent, log_buf(out, " stddev=%3.2f\n", ipc.cali_stddev); } - /* dynamic mem allocations can now be freed */ - if (ipc.opt != IDLE_PROF_OPT_NONE) - fio_idle_prof_cleanup(); - return; } @@ -498,7 +494,5 @@ void show_idle_prof_stats(int output, struct json_object *parent, json_object_add_value_float(tmp, "unit_mean", ipc.cali_mean); json_object_add_value_float(tmp, "unit_stddev", ipc.cali_stddev); - - fio_idle_prof_cleanup(); } }