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

Unverified Commit b8bd066f authored by Nathan Chancellor's avatar Nathan Chancellor
Browse files

kernel/sched: Fix up 4.9.135 merge



Commit aee0c9e8 ("sched/cputime: Fix ksoftirqd cputime accounting
regression") moved the calls to u64_stats_update_{begin,end} from
irqtime_account_irq into irqtime_account_delta. This was missed in
commit 03fcc2fe ("Merge 4.9.135 into android-4.9"), which only
removed the u64_stats_update_begin call in irqtime_account_irq, because
of a conflict with commit 3a73c96a ("ANDROID: sched/walt: Accounting
for number of irqs pending on each core").

Since the two code blocks above and below this statement were gated by
CONFIG_SCHED_WALT, combine them into one at the same time.

Change-Id: I25e9e5a2f063f8df53fa4ff2cfc26dced6ec2b02
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
parent 826f3285
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -87,10 +87,7 @@ void irqtime_account_irq(struct task_struct *curr)
#ifdef CONFIG_SCHED_WALT
	else
		account = false;
#endif

	u64_stats_update_end(&irqtime->sync);
#ifdef CONFIG_SCHED_WALT
	if (account)
		walt_account_irqtime(cpu, curr, delta, wallclock);
#endif