diff options
| author | Dominik Brodowski <[email protected]> | 2018-01-30 05:42:37 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2018-02-08 09:21:39 +0000 |
| commit | ffd81dcfef85a33729f90e4acd2f61a68e56b993 (patch) | |
| tree | 4160debd7778d436e027edf810e438266953dc11 /drivers/acpi/cppc_acpi.c | |
| parent | cpufreq: intel_pstate: Enable HWP during system resume on CPU0 (diff) | |
| download | kernel-ffd81dcfef85a33729f90e4acd2f61a68e56b993.tar.gz kernel-ffd81dcfef85a33729f90e4acd2f61a68e56b993.zip | |
cpufreq: Add and use cpufreq_for_each_{valid_,}entry_idx()
Pointer subtraction is slow and tedious. Therefore, replace all instances
where cpufreq_for_each_{valid_,}entry loops contained such substractions
with an iteration macro providing an index to the frequency_table entry.
Suggested-by: Al Viro <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
