Re: [PATCH] PERF(kernel): Cleanup power events V2

Peter Zijlstra
2010-10-26T17:58:14Z

On Tue, 2010-10-26 at 11:56 -0500, Pierre Tardy wrote:
>
> + trace_runtime_pm_usage(dev, atomic_read(&dev->power.usage_count)+1);
> atomic_inc(&dev->power.usage_count);

That's terribly racy..