]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commita4675fbc4a7abe072ac6ba38c252f22a91ebcd94
treeebdf3fb59ee26392b5bfd1291f3c99e980c9ce5e
parent34e2c555f3e13c90e9284e23d00f03be8a6e06c5
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