Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5e3ce74d authored by Amit Pundir's avatar Amit Pundir
Browse files

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: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 67aa2849
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment