Linux MM tree latest commits
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: mm-commits@vger.kernel.org
Cc: suresh.b.siddha@intel.com, hpa@zytor.com, mingo@elte.hu,
	oleg@redhat.com, tglx@linutronix.de, tj@kernel.org,
	tony.luck@intel.com
Subject: + x86-ia64-smp-use-workqueues-unconditionally-during-do_boot_cpu.patch added to -mm tree
Date: Mon, 02 Aug 2010 15:30:29 -0700	[thread overview]
Message-ID: <201008022230.o72MUTMk015115@imap1.linux-foundation.org> (raw)


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


                 reply	other threads:[~2010-08-02 22:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201008022230.o72MUTMk015115@imap1.linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mm-commits@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=suresh.b.siddha@intel.com \
    --cc=tglx@linutronix.de \
    --cc=tj@kernel.org \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox