* + x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu.patch added to -mm tree
@ 2010-08-02 22:30 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2010-08-02 22:30 UTC (permalink / raw)
To: mm-commits; +Cc: suresh.b.siddha, hpa, mingo, oleg, tglx, tj, tony.luck
The patch titled
x86, ia64, smp: use workqueues unconditionally during do_boot_cpu()
has been added to the -mm tree. Its filename is
x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: x86, ia64, smp: use workqueues unconditionally during do_boot_cpu()
From: Suresh Siddha <suresh.b.siddha@intel.com>
Workqueues are now initialized as part of the early_initcall(). So they
are available for use during cold boot process aswell.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tejun Heo <tj@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/ia64/kernel/smpboot.c | 15 ++++++---------
arch/x86/kernel/smpboot.c | 8 ++------
2 files changed, 8 insertions(+), 15 deletions(-)
diff -puN arch/ia64/kernel/smpboot.c~x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu arch/ia64/kernel/smpboot.c
--- a/arch/ia64/kernel/smpboot.c~x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu
+++ a/arch/ia64/kernel/smpboot.c
@@ -508,21 +508,18 @@ do_boot_cpu (int sapicid, int cpu)
.done = COMPLETION_INITIALIZER(c_idle.done),
};
+ /*
+ * We can't use kernel_thread since we must avoid to
+ * reschedule the child.
+ */
c_idle.idle = get_idle_for_cpu(cpu);
if (c_idle.idle) {
init_idle(c_idle.idle, cpu);
goto do_rest;
}
- /*
- * We can't use kernel_thread since we must avoid to reschedule the child.
- */
- if (!keventd_up())
- c_idle.work.func(&c_idle.work);
- else {
- schedule_work(&c_idle.work);
- wait_for_completion(&c_idle.done);
- }
+ schedule_work(&c_idle.work);
+ wait_for_completion(&c_idle.done);
if (IS_ERR(c_idle.idle))
panic("failed fork for CPU %d", cpu);
diff -puN arch/x86/kernel/smpboot.c~x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu arch/x86/kernel/smpboot.c
--- a/arch/x86/kernel/smpboot.c~x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu
+++ a/arch/x86/kernel/smpboot.c
@@ -735,12 +735,8 @@ static int __cpuinit do_boot_cpu(int api
goto do_rest;
}
- if (!keventd_up())
- c_idle.work.func(&c_idle.work);
- else {
- schedule_work(&c_idle.work);
- wait_for_completion(&c_idle.done);
- }
+ schedule_work(&c_idle.work);
+ wait_for_completion(&c_idle.done);
if (IS_ERR(c_idle.idle)) {
printk("failed fork for CPU %d\n", cpu);
_
Patches currently in -mm which might be from suresh.b.siddha@intel.com are
linux-next.patch
x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-02 22:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02 22:30 + x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox