diff options
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/tick-sched.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 8f3fc2582d38..1f2fce2479fe 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -420,6 +420,7 @@ void tick_nohz_restart_sched_tick(void) | |||
420 | int cpu = smp_processor_id(); | 420 | int cpu = smp_processor_id(); |
421 | struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); | 421 | struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); |
422 | unsigned long ticks; | 422 | unsigned long ticks; |
423 | cputime_t cputime; | ||
423 | ktime_t now; | 424 | ktime_t now; |
424 | 425 | ||
425 | local_irq_disable(); | 426 | local_irq_disable(); |
@@ -452,8 +453,8 @@ void tick_nohz_restart_sched_tick(void) | |||
452 | */ | 453 | */ |
453 | if (ticks && ticks < LONG_MAX) { | 454 | if (ticks && ticks < LONG_MAX) { |
454 | add_preempt_count(HARDIRQ_OFFSET); | 455 | add_preempt_count(HARDIRQ_OFFSET); |
455 | account_system_time(current, HARDIRQ_OFFSET, | 456 | cputime = jiffies_to_cputime(ticks); |
456 | jiffies_to_cputime(ticks)); | 457 | account_system_time(current, HARDIRQ_OFFSET, cputime, cputime); |
457 | sub_preempt_count(HARDIRQ_OFFSET); | 458 | sub_preempt_count(HARDIRQ_OFFSET); |
458 | } | 459 | } |
459 | 460 | ||