aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-05-30 18:41:28 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-06-09 16:55:57 -0400
commita9af0235047575d7bfe5922b63c9eb2742a18f43 (patch)
tree35408b9671b735ada5e8241ba70b5050e4076c0a /arch
parent93ad471f8a5e2ba8d27a29af3589f156f45cc2f1 (diff)
Make __ARCH_HAS_FEATHER_TRACE a proper CONFIG_ variable.
The idea of the Feather-Trace default implementation is that LITMUS^RT should work without a specialized Feather-Trace implementation present. This was actually broken. Changes litmus/feather_trace.h to only include asm/feather_trace.h if actually promised by the architecture.
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/Kconfig3
-rw-r--r--arch/x86/include/asm/feather_trace_32.h1
-rw-r--r--arch/x86/include/asm/feather_trace_64.h2
-rw-r--r--arch/x86/kernel/ft_event.c4
4 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 56b90e5884bc..772c1d6c2819 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2101,4 +2101,7 @@ source "arch/x86/kvm/Kconfig"
2101 2101
2102source "lib/Kconfig" 2102source "lib/Kconfig"
2103 2103
2104config ARCH_HAS_FEATHER_TRACE
2105 def_bool y
2106
2104source "litmus/Kconfig" 2107source "litmus/Kconfig"
diff --git a/arch/x86/include/asm/feather_trace_32.h b/arch/x86/include/asm/feather_trace_32.h
index 192cd09b7850..70202f90f169 100644
--- a/arch/x86/include/asm/feather_trace_32.h
+++ b/arch/x86/include/asm/feather_trace_32.h
@@ -77,4 +77,3 @@
77 "2: \n\t" \ 77 "2: \n\t" \
78 : : "r" (p), "r" (p2), "r" (p3) : CLOBBER_LIST) 78 : : "r" (p), "r" (p2), "r" (p3) : CLOBBER_LIST)
79 79
80#define __ARCH_HAS_FEATHER_TRACE
diff --git a/arch/x86/include/asm/feather_trace_64.h b/arch/x86/include/asm/feather_trace_64.h
index 1cffa4eec5f4..54ac2aeb3a28 100644
--- a/arch/x86/include/asm/feather_trace_64.h
+++ b/arch/x86/include/asm/feather_trace_64.h
@@ -65,5 +65,3 @@
65 _EVENT_TABLE(id,1b,2f) \ 65 _EVENT_TABLE(id,1b,2f) \
66 "2: \n\t" \ 66 "2: \n\t" \
67 : : "r" (p), "r" (p2), "r" (p3) : CLOBBER_LIST) 67 : : "r" (p), "r" (p2), "r" (p3) : CLOBBER_LIST)
68
69#define __ARCH_HAS_FEATHER_TRACE
diff --git a/arch/x86/kernel/ft_event.c b/arch/x86/kernel/ft_event.c
index e07ee30dfff9..da9b3ccb7259 100644
--- a/arch/x86/kernel/ft_event.c
+++ b/arch/x86/kernel/ft_event.c
@@ -2,7 +2,6 @@
2 2
3#include <litmus/feather_trace.h> 3#include <litmus/feather_trace.h>
4 4
5#ifdef __ARCH_HAS_FEATHER_TRACE
6/* the feather trace management functions assume 5/* the feather trace management functions assume
7 * exclusive access to the event table 6 * exclusive access to the event table
8 */ 7 */
@@ -107,6 +106,3 @@ int ft_is_event_enabled(unsigned long id)
107 } 106 }
108 return 0; 107 return 0;
109} 108}
110
111#endif
112