[lkml]   [2005]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: make smp_prepare_cpu to a weak function
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

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 :-(

Ashok Raj
- Open Source Technology Center
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-05-06 02:54    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean