LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Magnus Damm" <magnus.damm@gmail.com>
To: "Andrew Morton" <akpm@linux-foundation.org>
Cc: "Magnus Damm" <magnus@valinux.co.jp>,
	linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, "Luck,
	Tony" <tony.luck@intel.com>,
	fastboot@lists.osdl.org, nanhai.zou@intel.com
Subject: Re: [PATCH] kexec: Fix CONFIG_SMP=n compilation (ia64)
Date: Fri, 2 Feb 2007 20:53:00 +0900	[thread overview]
Message-ID: <aec7e5c30702020353h31fe9287nbf63612819a8c08f@mail.gmail.com> (raw)
In-Reply-To: <aec7e5c30702011838g6e9edd23sc782321aacb07297@mail.gmail.com>

On 2/2/07, Magnus Damm <magnus.damm@gmail.com> wrote:
> On 2/2/07, Andrew Morton <akpm@linux-foundation.org> wrote:
> > Magnus Damm <magnus@valinux.co.jp> wrote:
> >
> > > kexec: Fix CONFIG_SMP=n compilation (ia64)
> > >
> > > This patch makes it possible to compile kexec for ia64 without SMP support.
> > > --- 0002/arch/ia64/kernel/machine_kexec.c
> > > +++ work/arch/ia64/kernel/machine_kexec.c     2007-02-01 12:35:46.000000000 +0900
> > > @@ -70,12 +70,14 @@ void machine_kexec_cleanup(struct kimage
> > >
> > >  void machine_shutdown(void)
> > >  {
> > > +#ifdef CONFIG_SMP
> > >       int cpu;
> > >
> > >       for_each_online_cpu(cpu) {
> > >               if (cpu != smp_processor_id())
> > >                       cpu_down(cpu);
> > >       }
> > > +#endif
> > >       kexec_disable_iosapic();
> > >  }
> >
> > hm.  I suspect this one should have been #ifndef CONFIG_HOTPLUG_CPU?

Re-reading this I assume you mean #ifdef CONFIG_HOTPLUG_CPU.

I would be happy to resend a new updated version of the patch, but I
wonder if it may be better to fail miserably during the build than
fail silently in the case of CONFIG_SMP=y but CONFIG_HOTPLUG_CPU=n.

Any ideas?

Nan hai, is there any particular reason why the ia64 kexec code builds
on top of cpu hotplug instead of smp functions such as
smp_send_stop()?

Thanks!

/ magnus

  parent reply	other threads:[~2007-02-02 11:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01 13:13 Magnus Damm
2007-02-02  0:33 ` Andrew Morton
2007-02-02  2:38   ` Magnus Damm
2007-02-02  3:01     ` Zou, Nanhai
2007-02-02  3:57       ` [Fastboot] " Horms
2007-02-02 15:21         ` Jay Lan
2007-02-02 11:53     ` Magnus Damm [this message]
2007-02-03  3:27       ` Horms
2007-02-05  1:02         ` Zou, Nanhai
2007-02-05  6:41         ` Magnus Damm

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=aec7e5c30702020353h31fe9287nbf63612819a8c08f@mail.gmail.com \
    --to=magnus.damm@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=fastboot@lists.osdl.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=magnus@valinux.co.jp \
    --cc=nanhai.zou@intel.com \
    --cc=tony.luck@intel.com \
    --subject='Re: [PATCH] kexec: Fix CONFIG_SMP=n compilation (ia64)' \
    /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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).