* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
return default_networks;
}
-# ifndef HAVE_LIBPTHREAD
+# ifndef HAVE_PTHREAD
void lnet_init_locks(void)
{
{
/* Return the # of NIs that need the acceptor. */
int count = 0;
-#if defined(__KERNEL__) || defined(HAVE_LIBPTHREAD)
+#if defined(__KERNEL__) || defined(HAVE_PTHREAD)
cfs_list_t *tmp;
lnet_ni_t *ni;
LNET_UNLOCK();
-#endif /* defined(__KERNEL__) || defined(HAVE_LIBPTHREAD) */
+#endif /* defined(__KERNEL__) || defined(HAVE_PTHREAD) */
return count;
}
CERROR("Can't load LND %s, module %s, rc=%d\n",
libcfs_lnd2str(lnd_type),
libcfs_lnd2modname(lnd_type), rc);
-#ifndef CONFIG_KMOD
+#ifndef HAVE_MODULE_LOADING_SUPPORT
LCONSOLE_ERROR_MSG(0x104, "Your kernel must be "
- "compiled with CONFIG_KMOD set for "
- "automatic module loading.");
+ "compiled with kernel module "
+ "loading support.");
#endif
goto failed;
}
the_lnet.ln_eqwaitni = ni;
}
} else {
-# ifndef HAVE_LIBPTHREAD
+# ifndef HAVE_PTHREAD
LCONSOLE_ERROR_MSG(0x106, "LND %s not supported in a "
"single-threaded runtime\n",
libcfs_lnd2str(lnd_type));
# ifdef CRAY_XT3
LNET_REGISTER_ULND(the_ptllnd);
# endif
-# ifdef HAVE_LIBPTHREAD
+# ifdef HAVE_PTHREAD
LNET_REGISTER_ULND(the_tcplnd);
# endif
#endif