Revert "ANDROID: sched: Add vendor hooks for skipping sugov update"
This reverts commit 846bf8e8cb
.
Signed-off-by: Quentin Perret <qperret@google.com>
Change-Id: Ib8b7721c2a37393a85108f4c8aee920f68044f0c
This commit is contained in:
@@ -107,7 +107,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_resume_cpus);
|
|||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_find_energy_efficient_cpu);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_find_energy_efficient_cpu);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_sugov_sched_attr);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_sugov_sched_attr);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_set_iowait);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_set_iowait);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_set_sugov_update);
|
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpu_overutilized);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpu_overutilized);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_sched_setaffinity);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_sched_setaffinity);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_update_cpus_allowed);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_update_cpus_allowed);
|
||||||
|
@@ -122,11 +122,6 @@ DECLARE_RESTRICTED_HOOK(android_rvh_set_iowait,
|
|||||||
TP_PROTO(struct task_struct *p, int *should_iowait_boost),
|
TP_PROTO(struct task_struct *p, int *should_iowait_boost),
|
||||||
TP_ARGS(p, should_iowait_boost), 1);
|
TP_ARGS(p, should_iowait_boost), 1);
|
||||||
|
|
||||||
struct sugov_policy;
|
|
||||||
DECLARE_RESTRICTED_HOOK(android_rvh_set_sugov_update,
|
|
||||||
TP_PROTO(struct sugov_policy *sg_policy, unsigned int next_freq, bool *should_update),
|
|
||||||
TP_ARGS(sg_policy, next_freq, should_update), 1);
|
|
||||||
|
|
||||||
DECLARE_RESTRICTED_HOOK(android_rvh_cpu_overutilized,
|
DECLARE_RESTRICTED_HOOK(android_rvh_cpu_overutilized,
|
||||||
TP_PROTO(int cpu, int *overutilized),
|
TP_PROTO(int cpu, int *overutilized),
|
||||||
TP_ARGS(cpu, overutilized), 1);
|
TP_ARGS(cpu, overutilized), 1);
|
||||||
|
@@ -103,7 +103,6 @@ static bool sugov_should_update_freq(struct sugov_policy *sg_policy, u64 time)
|
|||||||
static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time,
|
static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time,
|
||||||
unsigned int next_freq)
|
unsigned int next_freq)
|
||||||
{
|
{
|
||||||
bool should_update = true;
|
|
||||||
if (!sg_policy->need_freq_update) {
|
if (!sg_policy->need_freq_update) {
|
||||||
if (sg_policy->next_freq == next_freq)
|
if (sg_policy->next_freq == next_freq)
|
||||||
return false;
|
return false;
|
||||||
@@ -111,10 +110,6 @@ static bool sugov_update_next_freq(struct sugov_policy *sg_policy, u64 time,
|
|||||||
sg_policy->need_freq_update = cpufreq_driver_test_flags(CPUFREQ_NEED_UPDATE_LIMITS);
|
sg_policy->need_freq_update = cpufreq_driver_test_flags(CPUFREQ_NEED_UPDATE_LIMITS);
|
||||||
}
|
}
|
||||||
|
|
||||||
trace_android_rvh_set_sugov_update(sg_policy, next_freq, &should_update);
|
|
||||||
if (!should_update)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
sg_policy->next_freq = next_freq;
|
sg_policy->next_freq = next_freq;
|
||||||
sg_policy->last_freq_update_time = time;
|
sg_policy->last_freq_update_time = time;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user