Re: [patch 4/4] increase traffic on linux-kernel
Andrew Morton (akpm@digeo.com)
Wed, 25 Sep 2002 21:31:27 -0700
Jeff Garzik wrote:
>
> Andrew Morton wrote:
> > --- 2.5.38/include/linux/kernel.h~might_sleep Wed Sep 25 20:15:27 2002
> > +++ 2.5.38-akpm/include/linux/kernel.h Wed Sep 25 20:15:27 2002
> > @@ -40,6 +40,13 @@
> >
> > struct completion;
> >
> > +#ifdef CONFIG_DEBUG_KERNEL
> > +void __might_sleep(char *file, int line);
> > +#define might_sleep() __might_sleep(__FILE__, __LINE__)
> > +#else
> > +#define might_sleep() do {} while(0)
> > +#endif
>
> I disagree with this -- CONFIG_DEBUG_KERNEL should not enable any machinery.
I did this because adding a function call to down() and friends
has significant cost.
> Magic Sysrq should be enable-able without affecting any other parts of
> the kernel.
A separate config option then?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/