* 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.
*/
/*
LNET_LOCK();
lnet_initialise_handle (&eq->eq_lh, LNET_COOKIE_TYPE_EQ);
- list_add (&eq->eq_list, &the_lnet.ln_active_eqs);
+ cfs_list_add (&eq->eq_list, &the_lnet.ln_active_eqs);
LNET_UNLOCK();
size = eq->eq_size;
lnet_invalidate_handle (&eq->eq_lh);
- list_del (&eq->eq_list);
+ cfs_list_del (&eq->eq_list);
lnet_eq_free (eq);
LNET_UNLOCK();
#else
struct timeval then;
struct timeval now;
-# ifdef HAVE_LIBPTHREAD
+# ifdef HAVE_PTHREAD
struct timespec ts;
# endif
lnet_ni_t *eqwaitni = the_lnet.ln_eqwaitni;
}
cfs_waitlink_init(&wl);
- set_current_state(TASK_INTERRUPTIBLE);
+ cfs_set_current_state(CFS_TASK_INTERRUPTIBLE);
cfs_waitq_add(&the_lnet.ln_waitq, &wl);
LNET_UNLOCK();
RETURN (0);
}
-# ifndef HAVE_LIBPTHREAD
+# ifndef HAVE_PTHREAD
/* If I'm single-threaded, LNET fails at startup if it can't
* set the_lnet.ln_eqwaitni correctly. */
LBUG();