Commit 49c69171 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Kill early might_sleep warnings

OK, I give up.  Kill all the might_sleep warnings from the early boot
process.
parent cb37891b
......@@ -2848,7 +2848,7 @@ void __might_sleep(char *file, int line)
#if defined(in_atomic)
static unsigned long prev_jiffy; /* ratelimiting */
if (in_atomic() || irqs_disabled()) {
if ((in_atomic() || irqs_disabled()) && system_running) {
if (time_before(jiffies, prev_jiffy + HZ) && prev_jiffy)
return;
prev_jiffy = jiffies;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment