diff options
| author | Rafael J. Wysocki <[email protected]> | 2018-05-23 09:47:45 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2018-05-24 08:21:18 +0000 |
| commit | a61dec7447456858dfc88fe056017a91ab903ed0 (patch) | |
| tree | cc296fea94a97c09349f4dbf057a61dd2b004f92 /drivers/fpga/machxo2-spi.c | |
| parent | schedutil: Allow cpufreq requests to be made even when kthread kicked (diff) | |
| download | kernel-a61dec7447456858dfc88fe056017a91ab903ed0.tar.gz kernel-a61dec7447456858dfc88fe056017a91ab903ed0.zip | |
cpufreq: schedutil: Avoid missing updates for one-CPU policies
Commit 152db033d775 (schedutil: Allow cpufreq requests to be made
even when kthread kicked) made changes to prevent utilization updates
from being discarded during processing a previous request, but it
left a small window in which that still can happen in the one-CPU
policy case. Namely, updates coming in after setting work_in_progress
in sugov_update_commit() and clearing it in sugov_work() will still
be dropped due to the work_in_progress check in sugov_update_single().
To close that window, rearrange the code so as to acquire the update
lock around the deferred update branch in sugov_update_single()
and drop the work_in_progress check from it.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Juri Lelli <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Reviewed-by: Joel Fernandes (Google) <[email protected]>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions
