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 177ec0a0 ("timers: Remove the deprecated mod_timer_pinned() API"). Upstream commits 7ab4aabb ("cpufreq: Drop freq-table param to cpufreq_frequency_table_target()") and d218ed77 ("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 e788892b ("cpufreq: governor: Get rid of governor events"). Upstream commit 9a15fb2c ("cpufreq: Drop the 'initialized' field from struct cpufreq_governor"), dropped governor->initialized field. cpufreq_frequency_get_table() is dropped by upstream commit f8bfc116 ("cpufreq: Remove cpufreq_frequency_get_table()"), use "policy->freq_table" instead. Signed-off-by:Amit Pundir <amit.pundir@linaro.org>
Loading
Please register or sign in to comment