#include "sched.h"
-unsigned long boosted_cpu_util(int cpu);
+unsigned long boosted_cpu_util(int cpu, unsigned long other_util);
#define SUGOV_KTHREAD_PRIORITY 50
rt = sched_get_rt_rq_util(cpu);
- *util = boosted_cpu_util(cpu) + rt;
+ *util = boosted_cpu_util(cpu, rt);
*util = min(*util, max_cap);
*max = max_cap;
}
stop_kthread:
sugov_kthread_stop(sg_policy);
-
-free_sg_policy:
mutex_unlock(&global_tunables_lock);
+free_sg_policy:
sugov_policy_free(sg_policy);
disable_fast_switch: