Loading kernel/sched/fair.c +3 −0 Original line number Diff line number Diff line Loading @@ -4016,6 +4016,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) thresh >>= 1; vruntime -= thresh; if (entity_is_task(se) && per_task_boost(task_of(se)) == TASK_BOOST_STRICT_MAX) vruntime -= sysctl_sched_latency; } /* ensure we never gain time by being placed backwards. */ Loading kernel/sched/sched.h +11 −11 Original line number Diff line number Diff line Loading @@ -2192,17 +2192,6 @@ unsigned long arch_scale_max_freq_capacity(struct sched_domain *sd, int cpu) unsigned long capacity_curr_of(int cpu); #ifdef CONFIG_SMP static inline unsigned long capacity_of(int cpu) { return cpu_rq(cpu)->cpu_capacity; } static inline unsigned long capacity_orig_of(int cpu) { return cpu_rq(cpu)->cpu_capacity_orig; } #ifdef CONFIG_SCHED_WALT static inline int per_task_boost(struct task_struct *p) { Loading @@ -2222,6 +2211,17 @@ static inline int per_task_boost(struct task_struct *p) } #endif #ifdef CONFIG_SMP static inline unsigned long capacity_of(int cpu) { return cpu_rq(cpu)->cpu_capacity; } static inline unsigned long capacity_orig_of(int cpu) { return cpu_rq(cpu)->cpu_capacity_orig; } static inline unsigned long task_util(struct task_struct *p) { #ifdef CONFIG_SCHED_WALT Loading Loading
kernel/sched/fair.c +3 −0 Original line number Diff line number Diff line Loading @@ -4016,6 +4016,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) thresh >>= 1; vruntime -= thresh; if (entity_is_task(se) && per_task_boost(task_of(se)) == TASK_BOOST_STRICT_MAX) vruntime -= sysctl_sched_latency; } /* ensure we never gain time by being placed backwards. */ Loading
kernel/sched/sched.h +11 −11 Original line number Diff line number Diff line Loading @@ -2192,17 +2192,6 @@ unsigned long arch_scale_max_freq_capacity(struct sched_domain *sd, int cpu) unsigned long capacity_curr_of(int cpu); #ifdef CONFIG_SMP static inline unsigned long capacity_of(int cpu) { return cpu_rq(cpu)->cpu_capacity; } static inline unsigned long capacity_orig_of(int cpu) { return cpu_rq(cpu)->cpu_capacity_orig; } #ifdef CONFIG_SCHED_WALT static inline int per_task_boost(struct task_struct *p) { Loading @@ -2222,6 +2211,17 @@ static inline int per_task_boost(struct task_struct *p) } #endif #ifdef CONFIG_SMP static inline unsigned long capacity_of(int cpu) { return cpu_rq(cpu)->cpu_capacity; } static inline unsigned long capacity_orig_of(int cpu) { return cpu_rq(cpu)->cpu_capacity_orig; } static inline unsigned long task_util(struct task_struct *p) { #ifdef CONFIG_SCHED_WALT Loading