aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r--kernel/sched/sched.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 1783f6b4c2e0..802b1f3405f2 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2322,7 +2322,6 @@ static inline unsigned long capacity_orig_of(int cpu)
2322} 2322}
2323#endif 2323#endif
2324 2324
2325#ifdef CONFIG_CPU_FREQ_GOV_SCHEDUTIL
2326/** 2325/**
2327 * enum schedutil_type - CPU utilization type 2326 * enum schedutil_type - CPU utilization type
2328 * @FREQUENCY_UTIL: Utilization used to select frequency 2327 * @FREQUENCY_UTIL: Utilization used to select frequency
@@ -2338,15 +2337,11 @@ enum schedutil_type {
2338 ENERGY_UTIL, 2337 ENERGY_UTIL,
2339}; 2338};
2340 2339
2341unsigned long schedutil_freq_util(int cpu, unsigned long util_cfs, 2340#ifdef CONFIG_CPU_FREQ_GOV_SCHEDUTIL
2342 unsigned long max, enum schedutil_type type);
2343 2341
2344static inline unsigned long schedutil_energy_util(int cpu, unsigned long cfs) 2342unsigned long schedutil_cpu_util(int cpu, unsigned long util_cfs,
2345{ 2343 unsigned long max, enum schedutil_type type,
2346 unsigned long max = arch_scale_cpu_capacity(cpu); 2344 struct task_struct *p);
2347
2348 return schedutil_freq_util(cpu, cfs, max, ENERGY_UTIL);
2349}
2350 2345
2351static inline unsigned long cpu_bw_dl(struct rq *rq) 2346static inline unsigned long cpu_bw_dl(struct rq *rq)
2352{ 2347{
@@ -2375,11 +2370,13 @@ static inline unsigned long cpu_util_rt(struct rq *rq)
2375 return READ_ONCE(rq->avg_rt.util_avg); 2370 return READ_ONCE(rq->avg_rt.util_avg);
2376} 2371}
2377#else /* CONFIG_CPU_FREQ_GOV_SCHEDUTIL */ 2372#else /* CONFIG_CPU_FREQ_GOV_SCHEDUTIL */
2378static inline unsigned long schedutil_energy_util(int cpu, unsigned long cfs) 2373static inline unsigned long schedutil_cpu_util(int cpu, unsigned long util_cfs,
2374 unsigned long max, enum schedutil_type type,
2375 struct task_struct *p)
2379{ 2376{
2380 return cfs; 2377 return 0;
2381} 2378}
2382#endif 2379#endif /* CONFIG_CPU_FREQ_GOV_SCHEDUTIL */
2383 2380
2384#ifdef CONFIG_HAVE_SCHED_AVG_IRQ 2381#ifdef CONFIG_HAVE_SCHED_AVG_IRQ
2385static inline unsigned long cpu_util_irq(struct rq *rq) 2382static inline unsigned long cpu_util_irq(struct rq *rq)