]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Replace timers with utilization update callbacks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Feb 2016 00:45:30 +0000 (01:45 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:40:52 +0000 (14:40 +0100)
commit2da9f5cdcb76adb34298bae4afba088a8fc76053
treeebdf3fb59ee26392b5bfd1291f3c99e980c9ce5e
parent248962e78dec91b15b62ca8c640bfee6a7a4e2f1
cpufreq: intel_pstate: Replace timers with utilization update callbacks

Instead of using a per-CPU deferrable timer for utilization sampling
and P-states adjustments, register a utilization update callback that
will be invoked from the scheduler on utilization changes.

The sampling rate is still the same as what was used for the deferrable
timers, so the functional impact of this patch should not be significant.

Based on an earlier patch from Srinivas Pandruvada.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/cpufreq/intel_pstate.c