diff options
Diffstat (limited to 'include/litmus/feather_trace.h')
-rw-r--r-- | include/litmus/feather_trace.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/litmus/feather_trace.h b/include/litmus/feather_trace.h index 7d27e763406f..f3bbfa0935ef 100644 --- a/include/litmus/feather_trace.h +++ b/include/litmus/feather_trace.h | |||
@@ -2,7 +2,6 @@ | |||
2 | #define _FEATHER_TRACE_H_ | 2 | #define _FEATHER_TRACE_H_ |
3 | 3 | ||
4 | #include <asm/atomic.h> | 4 | #include <asm/atomic.h> |
5 | #include <asm/feather_trace.h> | ||
6 | 5 | ||
7 | int ft_enable_event(unsigned long id); | 6 | int ft_enable_event(unsigned long id); |
8 | int ft_disable_event(unsigned long id); | 7 | int ft_disable_event(unsigned long id); |
@@ -20,7 +19,12 @@ static inline int fetch_and_dec(int *val) | |||
20 | return atomic_sub_return(1, (atomic_t*) val) + 1; | 19 | return atomic_sub_return(1, (atomic_t*) val) + 1; |
21 | } | 20 | } |
22 | 21 | ||
23 | #ifndef __ARCH_HAS_FEATHER_TRACE | 22 | #ifdef CONFIG_ARCH_HAS_FEATHER_TRACE |
23 | |||
24 | #include <asm/feather_trace.h> | ||
25 | |||
26 | #else /* !__ARCH_HAS_FEATHER_TRACE */ | ||
27 | |||
24 | /* provide default implementation */ | 28 | /* provide default implementation */ |
25 | 29 | ||
26 | #define feather_callback | 30 | #define feather_callback |
@@ -44,6 +48,6 @@ extern int ft_events[MAX_EVENTS]; | |||
44 | #define ft_event3(id, callback, p, p2, p3) \ | 48 | #define ft_event3(id, callback, p, p2, p3) \ |
45 | if (ft_events[id]) callback(id, p, p2, p3); | 49 | if (ft_events[id]) callback(id, p, p2, p3); |
46 | 50 | ||
47 | #endif | 51 | #endif /* __ARCH_HAS_FEATHER_TRACE */ |
48 | 52 | ||
49 | #endif | 53 | #endif |