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

Commit 75d4ef16 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: fix delay accounting performance regression



fix delay accounting performance regression - those sched_clock()
calls are not needed.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 30cfdcfc
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -129,7 +129,7 @@ rq_sched_info_depart(struct rq *rq, unsigned long long delta)
# define schedstat_set(var, val)	do { } while (0)
# define schedstat_set(var, val)	do { } while (0)
#endif
#endif


#if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT)
#ifdef CONFIG_SCHEDSTATS
/*
/*
 * Called when a process is dequeued from the active array and given
 * Called when a process is dequeued from the active array and given
 * the cpu.  We should note that with the exception of interactive
 * the cpu.  We should note that with the exception of interactive
@@ -233,5 +233,5 @@ sched_info_switch(struct task_struct *prev, struct task_struct *next)
#else
#else
#define sched_info_queued(t)		do { } while (0)
#define sched_info_queued(t)		do { } while (0)
#define sched_info_switch(t, next)	do { } while (0)
#define sched_info_switch(t, next)	do { } while (0)
#endif /* CONFIG_SCHEDSTATS || CONFIG_TASK_DELAY_ACCT */
#endif /* CONFIG_SCHEDSTATS */