[openib-general] [PATCH] kdapltest: get kdapltest kernel part compiling under sparc64

Tom Duffy tduffy at sun.com
Tue May 17 11:46:26 PDT 2005


This patch allows the kernel part of kdapltest to compile on sparc64.  I
still have not tested any of the dapl stuff on sparc64.

Signed-off-by: Tom Duffy <tduffy at sun.com>

Index: linux-kernel-sparc64/test/dapltest/mdep/linux/dapl_mdep_kernel.h
===================================================================
--- linux-kernel-sparc64/test/dapltest/mdep/linux/dapl_mdep_kernel.h	(revision 2362)
+++ linux-kernel-sparc64/test/dapltest/mdep/linux/dapl_mdep_kernel.h	(working copy)
@@ -127,6 +127,8 @@ DT_Mdep_GetTimeStamp ( void )
     unsigned long x;
     x = get_cycles ();
     return x;
+#elif defined(__sparc_v9__)
+    return get_cycles();
 #else
 #error "Non-Pentium Linux - unimplemented"
 #endif




More information about the general mailing list