Re: [PATCH 09/10] provide a version of cpuusage statistics insidecpu cgroup

From: Peter Zijlstra
Date: Wed Oct 05 2011 - 05:14:19 EST


On Sun, 2011-10-02 at 23:21 +0400, Glauber Costa wrote:
> + if (tg->cpustat)
> + free_percpu(tg->cpustat);
> + if (tg->cpuusage)
> + free_percpu(tg->cpuusage);

void free_percpu(void __percpu *ptr)
{
void *addr;
struct pcpu_chunk *chunk;
unsigned long flags;
int off;

if (!ptr)
return;
...
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/