]> git.baikalelectronics.ru Git - 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)
commitfbde5d80980a8ab20ab74ff7b369acd29e50b902
treebdea5ca8701a87611ee85c366cc09c46ae26f2df
parent977566f0190bb89689a0ebf80e978e93e35a3d88
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