From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Galbraith Subject: Re: [PATCH RT 2/4] wait-simple: Simple waitqueue implementation Date: Wed, 18 Jan 2012 10:28:48 +0100 Message-ID: <1326878928.7482.2.camel@marge.simson.net> References: <20120118034531.335521323@goodmis.org> <20120118034700.245278561@goodmis.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, linux-rt-users , Thomas Gleixner , Carsten Emde , John Kacur To: Steven Rostedt Return-path: Received: from mailout-de.gmx.net ([213.165.64.23]:40883 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756890Ab2ARJ25 (ORCPT ); Wed, 18 Jan 2012 04:28:57 -0500 In-Reply-To: <20120118034700.245278561@goodmis.org> Sender: linux-rt-users-owner@vger.kernel.org List-ID: Greetings, On Tue, 2012-01-17 at 22:45 -0500, Steven Rostedt wrote: > diff --git a/kernel/wait-simple.c b/kernel/wait-simple.c > new file mode 100644 > index 0000000..7f1cb72 > --- /dev/null > +++ b/kernel/wait-simple.c > @@ -0,0 +1,62 @@ > +/* > + * Simple waitqueues without fancy flags and callbacks > + * > + * (C) 2011 Thomas Gleixner > + * > + * Based on kernel/wait.c > + * > + * For licencing details see kernel-base/COPYING > + */ > +#include > +#include > +#include > + > +void __init_swait_head(struct swait_head *head, struct lock_class_key *key) > +{ > + raw_spin_lock_init(&head->lock); > + lockdep_set_class(&head->lock, key); > + INIT_LIST_HEAD(&head->list); > +} > +EXPORT_SYMBOL_GPL(__init_swait_head); #include ? -Mike