From: Mark Huang Date: Sun, 12 Sep 2004 04:58:31 +0000 (+0000) Subject: - fix merge of LKCD patch X-Git-Tag: before-enable-kexec-patch~94 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b155f897b1d17dbe1bb4cf1cd088f74ea47f0bad;p=linux-2.6.git - fix merge of LKCD patch --- diff --git a/kernel/sched.c b/kernel/sched.c index e9c48e425..5771500c1 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1879,15 +1879,6 @@ nextgroup: 100*max_load <= sd->imbalance_pct*this_load) goto out_balanced; - /* - * If crash dump is in progress, this other cpu's - * need to wait until it completes. - * NB: this code is optimized away for kernels without - * dumping enabled. - */ - if (unlikely(dump_oncpu)) - goto dump_scheduling_disabled; - /* * We're trying to get all the cpus to the average_load, so we don't * want to push ourselves above the average load, nor do we wish to @@ -2535,6 +2526,15 @@ asmlinkage void __sched schedule(void) int maxidle = -HZ; #endif + /* + * If crash dump is in progress, this other cpu's + * need to wait until it completes. + * NB: this code is optimized away for kernels without + * dumping enabled. + */ + if (unlikely(dump_oncpu)) + goto dump_scheduling_disabled; + //WARN_ON(system_state == SYSTEM_BOOTING); /* * Test if we are atomic. Since do_exit() needs to call into