diff options
Diffstat (limited to 'litmus/trace.c')
-rw-r--r-- | litmus/trace.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/litmus/trace.c b/litmus/trace.c index fc1d03f35d39..c511003ea911 100644 --- a/litmus/trace.c +++ b/litmus/trace.c | |||
@@ -18,6 +18,15 @@ static unsigned int ts_seq_no = 0; | |||
18 | 18 | ||
19 | DEFINE_PER_CPU(atomic_t, irq_fired_count); | 19 | DEFINE_PER_CPU(atomic_t, irq_fired_count); |
20 | 20 | ||
21 | void ft_irq_fired(void) | ||
22 | { | ||
23 | /* Only called with preemptions disabled. */ | ||
24 | atomic_inc(&__get_cpu_var(irq_fired_count)); | ||
25 | |||
26 | if (has_control_page(current)) | ||
27 | get_control_page(current)->irq_count++; | ||
28 | } | ||
29 | |||
21 | static inline void clear_irq_fired(void) | 30 | static inline void clear_irq_fired(void) |
22 | { | 31 | { |
23 | atomic_set(&__raw_get_cpu_var(irq_fired_count), 0); | 32 | atomic_set(&__raw_get_cpu_var(irq_fired_count), 0); |