Re: [PATCH V4 6/6] cpufreq: governor: Create and traverse list of policy_dbs to fix lockdep
From: Viresh Kumar
Date: Wed Feb 10 2016 - 00:16:15 EST
On 09-02-16, 21:23, Rafael J. Wysocki wrote:
> > + count = dbs_data->usage_count--;
>
> This appears to be planting a bug.
>
> The way you wrote it the decrementation will take place after the assignment, so
> count will contain the old value.
Oh crap, what was I smoking :)
--
viresh