Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cc2c36e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/fair: Fix compilation error when !SMP"

parents ed09a136 fa9d4691
Loading
Loading
Loading
Loading
+4 −10
Original line number Original line Diff line number Diff line
@@ -4166,8 +4166,6 @@ void init_new_task_load(struct task_struct *p)


#else /* CONFIG_SCHED_HMP */
#else /* CONFIG_SCHED_HMP */


#if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED)

void init_new_task_load(struct task_struct *p)
void init_new_task_load(struct task_struct *p)
{
{
	p->se.avg.decay_count = 0;
	p->se.avg.decay_count = 0;
@@ -4175,14 +4173,6 @@ void init_new_task_load(struct task_struct *p)
	p->se.avg.runnable_avg_sum = 0;
	p->se.avg.runnable_avg_sum = 0;
}
}


#else	/* CONFIG_SMP && CONFIG_FAIR_GROUP_SCHED */

void init_new_task_load(struct task_struct *p)
{
}

#endif	/* CONFIG_SMP && CONFIG_FAIR_GROUP_SCHED */

#endif /* CONFIG_SCHED_HMP */
#endif /* CONFIG_SCHED_HMP */


/*
/*
@@ -4621,6 +4611,10 @@ inc_rq_hmp_stats(struct rq *rq, struct task_struct *p, int change_cra) { }
static inline void
static inline void
dec_rq_hmp_stats(struct rq *rq, struct task_struct *p, int change_cra) { }
dec_rq_hmp_stats(struct rq *rq, struct task_struct *p, int change_cra) { }


void init_new_task_load(struct task_struct *p)
{
}

#endif /* CONFIG_SMP */
#endif /* CONFIG_SMP */


#ifdef CONFIG_SCHED_HMP
#ifdef CONFIG_SCHED_HMP