Lines Matching refs:irqtime
21 DEFINE_PER_CPU(struct irqtime, cpu_irqtime);
36 static void irqtime_account_delta(struct irqtime *irqtime, u64 delta, in irqtime_account_delta() argument
41 u64_stats_update_begin(&irqtime->sync); in irqtime_account_delta()
43 irqtime->total += delta; in irqtime_account_delta()
44 irqtime->tick_delta += delta; in irqtime_account_delta()
45 u64_stats_update_end(&irqtime->sync); in irqtime_account_delta()
54 struct irqtime *irqtime = this_cpu_ptr(&cpu_irqtime); in irqtime_account_irq() local
64 delta = sched_clock_cpu(cpu) - irqtime->irq_start_time; in irqtime_account_irq()
65 irqtime->irq_start_time += delta; in irqtime_account_irq()
75 irqtime_account_delta(irqtime, delta, CPUTIME_IRQ); in irqtime_account_irq()
78 irqtime_account_delta(irqtime, delta, CPUTIME_SOFTIRQ); in irqtime_account_irq()
87 struct irqtime *irqtime = this_cpu_ptr(&cpu_irqtime); in irqtime_tick_accounted() local
90 delta = min(irqtime->tick_delta, maxtime); in irqtime_tick_accounted()
91 irqtime->tick_delta -= delta; in irqtime_tick_accounted()