aboutsummaryrefslogblamecommitdiffstats
path: root/include/litmus/trace_irq.h
blob: f18b127a089d909130e805057b2dcdf1096ae27b (plain) (tree)




















                                                     
#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