aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/trace_irq.h
blob: f18b127a089d909130e805057b2dcdf1096ae27b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _LITMUS_TRACE_IRQ_H_
#define	_LITMUS_TRACE_IRQ_H_

#ifdef CONFIG_SCHED_OVERHEAD_TRACE

extern DEFINE_PER_CPU(atomic_t, irq_fired_count);

static inline void ft_irq_fired(void)
{
	/* Only called with preemptions disabled.  */
	atomic_inc(&__get_cpu_var(irq_fired_count));
}


#else

#define ft_irq_fired() /* nothing to do */

#endif

#endif