]> Git Repo - linux.git/commit
cpufreq: Add and use cpufreq_for_each_{valid_,}entry_idx()
authorDominik Brodowski <[email protected]>
Tue, 30 Jan 2018 05:42:37 +0000 (06:42 +0100)
committerRafael J. Wysocki <[email protected]>
Thu, 8 Feb 2018 09:21:39 +0000 (10:21 +0100)
commitffd81dcfef85a33729f90e4acd2f61a68e56b993
tree4160debd7778d436e027edf810e438266953dc11
parent70f6bf2a3b7e40c3f802b0ea837762a8bc6c1430
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]>
Documentation/cpu-freq/cpu-drivers.txt
drivers/cpufreq/exynos5440-cpufreq.c
drivers/cpufreq/freq_table.c
drivers/cpufreq/longhaul.c
drivers/cpufreq/pasemi-cpufreq.c
drivers/sh/clk/core.c
drivers/staging/irda/drivers/sh_sir.c
include/linux/cpufreq.h
This page took 0.056856 seconds and 4 git commands to generate.