ANDROID: cpufreq: interactive: build fixes

Refactored cpufreq interactive governor code wrt various upstream
cpufreq API changes in v4.8-rc1.

Use mod_timer and init_timer_pinned_deferrable because
mod_timer_pinned() is deprecated and removed by Upstream commit
177ec0a0a531 ("timers: Remove the deprecated mod_timer_pinned() API").

Upstream commits 7ab4aabbaa98 ("cpufreq: Drop freq-table param to
cpufreq_frequency_table_target()") and d218ed773915a ("cpufreq:
Return index from cpufreq_frequency_table_target()"), updated
cpufreq_frequency_table_target function, hence update this function
call accordingly.

CPUFREQ_GOV_POLICY_* events are deprecated and replaced with function
callbacks instead, by upstream commit e788892ba3cc ("cpufreq: governor:
Get rid of governor events").

Upstream commit 9a15fb2c797a ("cpufreq: Drop the 'initialized' field
from struct cpufreq_governor"), dropped governor->initialized field.

cpufreq_frequency_get_table() is dropped by upstream commit
f8bfc116cacb ("cpufreq: Remove cpufreq_frequency_get_table()"), use
"policy->freq_table" instead.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
1 file changed