]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cpufreq: intel_pstate: HWP boost performance on IO wakeup
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 5 Jun 2018 21:42:40 +0000 (14:42 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Jun 2018 06:37:52 +0000 (08:37 +0200)
commit52ccc4314293272397b117f3cc6f0f368c81431c
treebdea5ca8701a87611ee85c366cc09c46ae26f2df
parente0efd5be63e821066b5e6325cf237eb41367552f
cpufreq: intel_pstate: HWP boost performance on IO wakeup

This change uses SCHED_CPUFREQ_IOWAIT flag to boost HWP performance.
Since SCHED_CPUFREQ_IOWAIT flag is set frequently, we don't start
boosting steps unless we see two consecutive flags in two ticks. This
avoids boosting due to IO because of regular system activities.

To avoid synchronization issues, the actual processing of the flag is
done on the local CPU callback.

Reported-by: Mel Gorman <mgorman@techsingularity.net>
Tested-by: Giovanni Gherdovich <ggherdovich@suse.cz>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c