sched: Fix compilation issue with reset_hmp_stats
reset_hmp_stats was moved to another file and when CONFIG_CFS_BANDWIDTH is enabled there is code still referencing this in the original file causing compilation error. Change-Id: Iab7fc8551b628c443ce751026b06c5ff4ebba39a Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
This commit is contained in:
parent
6812bb69d0
commit
95ceec13f7
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
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;
|
stats->nr_big_tasks = 0;
|
||||||
if (reset_cra) {
|
if (reset_cra) {
|
||||||
|
|
|
@ -1407,6 +1407,7 @@ extern void inc_rq_hmp_stats(struct rq *rq,
|
||||||
struct task_struct *p, int change_cra);
|
struct task_struct *p, int change_cra);
|
||||||
extern void dec_rq_hmp_stats(struct rq *rq,
|
extern void dec_rq_hmp_stats(struct rq *rq,
|
||||||
struct task_struct *p, int change_cra);
|
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 is_big_task(struct task_struct *p);
|
||||||
extern int upmigrate_discouraged(struct task_struct *p);
|
extern int upmigrate_discouraged(struct task_struct *p);
|
||||||
extern struct sched_cluster *rq_cluster(struct rq *rq);
|
extern struct sched_cluster *rq_cluster(struct rq *rq);
|
||||||
|
|
Loading…
Add table
Reference in a new issue