]> nv-tegra.nvidia Code Review - linux-4.9.git/commitdiff
kernel/sched: Fix up 4.9.135 merge
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 22 Oct 2018 04:43:09 +0000 (21:43 -0700)
committerNathan Chancellor <natechancellor@gmail.com>
Tue, 23 Oct 2018 17:45:16 +0000 (10:45 -0700)
Commit aee0c9e837c2 ("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 03fcc2fe7130 ("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 3a73c96a286f ("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: Nathan Chancellor <natechancellor@gmail.com>
kernel/sched/cputime.c

index 889f47796e1503081f776716ed38dccc620141e3..84437fca4c1c3528b2675e6e2064cc97b25eb611 100644 (file)
@@ -86,10 +86,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