aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 771b518e5f1f..089be8adb074 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3422,7 +3422,7 @@ void account_system_time(struct task_struct *p, int hardirq_offset,
3422 tmp = cputime_to_cputime64(cputime); 3422 tmp = cputime_to_cputime64(cputime);
3423 if (hardirq_count() - hardirq_offset) 3423 if (hardirq_count() - hardirq_offset)
3424 cpustat->irq = cputime64_add(cpustat->irq, tmp); 3424 cpustat->irq = cputime64_add(cpustat->irq, tmp);
3425 else if (softirq_count()) 3425 else if (in_serving_softirq())
3426 cpustat->softirq = cputime64_add(cpustat->softirq, tmp); 3426 cpustat->softirq = cputime64_add(cpustat->softirq, tmp);
3427 else 3427 else
3428 cpustat->system = cputime64_add(cpustat->system, tmp); 3428 cpustat->system = cputime64_add(cpustat->system, tmp);