Merge "sched: Fix compilation issue with reset_hmp_stats"
This commit is contained in:
commit
2a676929f1
3 changed files with 3 additions and 2 deletions
|
@ -3525,7 +3525,7 @@ static void dec_throttled_cfs_rq_hmp_stats(struct hmp_sched_stats *stats,
|
|||
|
||||
BUG_ON(stats->nr_big_tasks < 0 ||
|
||||
(s64)stats->cumulative_runnable_avg < 0);
|
||||
verify_pred_demands_sum(stats);
|
||||
BUG_ON((s64)stats->pred_demands_sum < 0);
|
||||
}
|
||||
|
||||
#else /* CONFIG_CFS_BANDWIDTH */
|
||||
|
|
|
@ -1387,7 +1387,7 @@ void dec_rq_hmp_stats(struct rq *rq, struct task_struct *p, int change_cra)
|
|||
dec_cumulative_runnable_avg(&rq->hmp_stats, p);
|
||||
}
|
||||
|
||||
static void reset_hmp_stats(struct hmp_sched_stats *stats, int reset_cra)
|
||||
void reset_hmp_stats(struct hmp_sched_stats *stats, int reset_cra)
|
||||
{
|
||||
stats->nr_big_tasks = 0;
|
||||
if (reset_cra) {
|
||||
|
|
|
@ -1407,6 +1407,7 @@ extern void inc_rq_hmp_stats(struct rq *rq,
|
|||
struct task_struct *p, int change_cra);
|
||||
extern void dec_rq_hmp_stats(struct rq *rq,
|
||||
struct task_struct *p, int change_cra);
|
||||
extern void reset_hmp_stats(struct hmp_sched_stats *stats, int reset_cra);
|
||||
extern int is_big_task(struct task_struct *p);
|
||||
extern int upmigrate_discouraged(struct task_struct *p);
|
||||
extern struct sched_cluster *rq_cluster(struct rq *rq);
|
||||
|
|
Loading…
Add table
Reference in a new issue