Re: [PATCH] Linux 2.6.0-test8 __might_sleep warnings on boot

From: Andrew Morton
Date: Sat Oct 18 2003 - 18:16:44 EST


Roland Dreier <roland@xxxxxxxxxxxxxxxxxx> wrote:
>
> + /* __might_sleep checks now make sense */
> + init_idle_done = 1;

We already have the `system_running' flag which is suitable for this.

I've been dithering over whether we should use it, mainly because doing
things like downing a semaphore before we've even called sched_init()
(cpufreq) is a happens-to-be-harmless but fairly dumb thing to do.

Yes, we should probably do something like this, but later.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/