From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] nfsim: Support more netfilter modules Date: Thu, 15 Dec 2005 03:21:14 +0100 Message-ID: <43A0D31A.3020705@trash.net> References: <439ED1C5.7070103@ingate.com> <439F1733.7010201@ingate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Marcus Sundberg In-Reply-To: <439F1733.7010201@ingate.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Marcus Sundberg wrote: > Marcus Sundberg wrote: > >>--- nfsim/kernelenv/include/kernelenv.h (revision 6316) >>+++ nfsim/kernelenv/include/kernelenv.h (working copy) >>@@ -1166,6 +1177,10 @@ >> >> static inline void smp_read_barrier_depends(void) {;} >> >>+/* delay.h */ >>+ >>+#define msleep(x) do{unsigned int y = (x)*1000; usleep(y);}while(0) >>+ >> /* timer.h */ >> >> /* not used at the moment */ > > > Hmm, actually I guess something like: > > #define msleep(x) increment_time((x)*HZ/1000) > > would make more sense. Comments (on this or the original patch)? Definitely :) We don't really want to sleep.