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

James Lentini jlentini at netapp.com
Tue May 17 13:32:31 PDT 2005


I committed a change for this in revision 2369.

Instead of adding a case for __sparc_v9__, I implemented the function 
with get_cycles() in all cases since all but one case used this 
function (and the one that didn't probably should have). Let me know 
if you see any problems with this.

james

On Tue, 17 May 2005, Tom Duffy wrote:

tduffy> This patch allows the kernel part of kdapltest to compile on sparc64.  I
tduffy> still have not tested any of the dapl stuff on sparc64.
tduffy> 
tduffy> Signed-off-by: Tom Duffy <tduffy at sun.com>
tduffy> 
tduffy> Index: linux-kernel-sparc64/test/dapltest/mdep/linux/dapl_mdep_kernel.h
tduffy> ===================================================================
tduffy> --- linux-kernel-sparc64/test/dapltest/mdep/linux/dapl_mdep_kernel.h	(revision 2362)
tduffy> +++ linux-kernel-sparc64/test/dapltest/mdep/linux/dapl_mdep_kernel.h	(working copy)
tduffy> @@ -127,6 +127,8 @@ DT_Mdep_GetTimeStamp ( void )
tduffy>      unsigned long x;
tduffy>      x = get_cycles ();
tduffy>      return x;
tduffy> +#elif defined(__sparc_v9__)
tduffy> +    return get_cycles();
tduffy>  #else
tduffy>  #error "Non-Pentium Linux - unimplemented"
tduffy>  #endif
tduffy> 



More information about the general mailing list