Re: make smp_prepare_cpu to a weak function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux