[openib-general] [PATCH] udapl: PPC64 cpuinfo change

Todd Bowman twbowman at gmail.com
Thu Oct 6 10:48:02 PDT 2005


This patch in addition to "PPC64 atomic function additions" provides udapl
support on PPC64 platform.

/proc/cpuinfo on PPC64 prints different label for processor speed.

Signed-off-by: Todd Bowman <twbowman at gmail.com>

Index: userspace/dapl/test/dapltest/mdep/linux/dapl_mdep_user.c
===================================================================
--- userspace/dapl/test/dapltest/mdep/linux/dapl_mdep_user.c (revision 3547)
+++ userspace/dapl/test/dapltest/mdep/linux/dapl_mdep_user.c (working copy)
@@ -186,7 +186,12 @@
void )
{
#define DT_CPU_MHZ_BUFFER_SIZE 128
+
+#if defined (__PPC64__)
+#define DT_CPU_MHZ_MHZ "clock"
+#else
#define DT_CPU_MHZ_MHZ "cpu MHz"
+#endif
#define DT_CPU_MHZ_DELIMITER ":"

FILE *fp;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20051006/7852185a/attachment.html>


More information about the general mailing list