Fixes dapltest build problems on SUSE ia64 (applied - master and ofed_1_2)
Signed-off by: Arlin Davis [EMAIL PROTECTED]
diff --git a/test/dapltest/mdep/linux/dapl_mdep_user.h
b/test/dapltest/mdep/linux/dapl_mdep_user.h
old mode 100644
new mode 100755
index 2903e78..37a2bd4
--- a/test/dapltest/mdep/linux/dapl_mdep_user.h
+++ b/test/dapltest/mdep/linux/dapl_mdep_user.h
@@ -43,10 +43,6 @@
#include <string.h>
#include <sys/times.h>
-#ifdef __ia64__
-#include <asm/timex.h>
-#endif
-
/* Default Device Name */
#define DT_MdepDeviceName "ia0a"
@@ -124,10 +120,9 @@ DT_Mdep_GetTimeStamp ( void )
#else
#ifdef __ia64__
- unsigned long x;
-
- x = get_cycles ();
- return x;
+ unsigned long ret;
+ __asm__ __volatile__ ("mov %0=ar.itc" : "=r"(ret));
+ return ret;
#else
#if defined(__PPC64__)
unsigned int tbl, tbu0, tbu1;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general