summaryrefslogtreecommitdiffstats
path: root/patches/ltp-full-20090131/ltp-full-20090131-librttest-rdtsc-cross.diff
blob: d26faa82e94247f44baf78086f4234184e473179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
 testcases/realtime/include/librttest.h |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Index: ltp-full-20090131/testcases/realtime/include/librttest.h
===================================================================
--- ltp-full-20090131.orig/testcases/realtime/include/librttest.h
+++ ltp-full-20090131/testcases/realtime/include/librttest.h
@@ -124,7 +124,11 @@ typedef struct { volatile int counter; }
 	} while(0)
 #endif
 #else
-#error
+#warning "rdtscll() not implemented for this architecture"
+#define rdtscll(val) \
+	do { \
+		val = 0; \
+	} while(0)
 #endif
 
 extern pthread_mutex_t _buffer_mutex;