Re: [PATCH v2 1/2] cpufreq: governor: Fix race in dbs_update_util_handler()

2016-02-22 Thread Viresh Kumar
On 22-02-16, 14:14, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > There is a scenario that may lead to undesired results in > dbs_update_util_handler(). Namely, if two CPUs sharing a policy > enter the funtion at the same time, pass the sample delay check > and then one of them is stall

[PATCH v2 1/2] cpufreq: governor: Fix race in dbs_update_util_handler()

2016-02-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There is a scenario that may lead to undesired results in dbs_update_util_handler(). Namely, if two CPUs sharing a policy enter the funtion at the same time, pass the sample delay check and then one of them is stalled until dbs_work_handler() (queued up by the other CPU)