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

Commit 50ee0f8b authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: qhmp: Fix compilation for IRQ_TIME_ACCOUNTING



When IRQ_TIME_ACCOUNTING feature is enabled, compiler gives an
undefined reference error for sched_account_irqstart function.
Since cycle counter based accounting is not needed for any targets
that are using QHMP scheduler, provide a nop definition for this
function.

Change-Id: Id34e26c4e8d38db953e5d8e1f527e20a1772fe3a
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent ea7861da
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1084,6 +1084,12 @@ static inline int sched_cpu_high_irqload(int cpu) { return 0; }

#endif	/* CONFIG_SCHED_HMP */

/* cycle counter based accounting is not available in QHMP. */
static inline void sched_account_irqstart(int cpu, struct task_struct *curr,
					  u64 wallclock)
{
}

#ifdef CONFIG_SCHED_FREQ_INPUT
extern void check_for_freq_change(struct rq *rq);