From: Ashok Raj <ashok.raj@intel.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Ashok Raj <ashok.raj@intel.com>,
linux-kernel@vger.kernel.org, akpm@osdl.org,
zwane@arm.linux.org.uk, shaohua.li@intel.com
Subject: Re: make smp_prepare_cpu to a weak function
Date: Thu, 5 May 2005 17:51:00 -0700 [thread overview]
Message-ID: <20050505175059.A18081@unix-os.sc.intel.com> (raw)
In-Reply-To: <1115340027.6503.1.camel@localhost.localdomain>; from arjan@infradead.org on Thu, May 05, 2005 at 08:40:27PM -0400
On Thu, May 05, 2005 at 08:40:27PM -0400, Arjan van de Ven wrote:
> On Thu, 2005-05-05 at 17:07 -0700, Ashok Raj wrote:
> > +int __attribute__((weak)) smp_prepare_cpu (int cpu)
> > +{
> > + return 0;
> > +}
>
>
> ehhh what does this attribute mean here?????
>
>
This function exists only for i386. Today for smp suspend they are using
cpu hotplug code, but since i386 startup code is not like
true smp bringup, so there is this hack to prepare something before calling
__cpu_up().
This is just to provide a default implementation, in the case arch
doesnt provide a smp_prepare_cpu().
Hope i answered the right question, unless you have something subtle here :-(
Cheers,
ashok
--
Cheers,
Ashok Raj
- Open Source Technology Center
prev parent reply other threads:[~2005-05-06 0:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-06 0:07 Ashok Raj
2005-05-06 0:40 ` Arjan van de Ven
2005-05-06 0:51 ` Ashok Raj [this message]
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=20050505175059.A18081@unix-os.sc.intel.com \
--to=ashok.raj@intel.com \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shaohua.li@intel.com \
--cc=zwane@arm.linux.org.uk \
/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
all inboxes | Powered by JetHome®