Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Li Shaohua
On Tue, 2005-04-12 at 20:17, Zwane Mwaikambo wrote: > On Tue, 12 Apr 2005, Li Shaohua wrote: > > > #ifdef CONFIG_HOTPLUG_CPU > > +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) > > +{ > > + return 0; > > +} > > + > > Any way for you to avoid using weak attribute? Replace weak attribute

Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Li Shaohua
On Tue, 2005-04-12 at 20:17, Zwane Mwaikambo wrote: > On Tue, 12 Apr 2005, Li Shaohua wrote: > > > #ifdef CONFIG_HOTPLUG_CPU > > +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) > > +{ > > + return 0; > > +} > > + > > Any way for you to avoid using weak attribute? Just want to avoid more

Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Zwane Mwaikambo
On Tue, 12 Apr 2005, Li Shaohua wrote: > On Tue, 2005-04-12 at 20:17, Zwane Mwaikambo wrote: > > On Tue, 12 Apr 2005, Li Shaohua wrote: > > > > > #ifdef CONFIG_HOTPLUG_CPU > > > +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) > > > +{ > > > + return 0; > > > +} > > > + > > > > Any way for

Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Zwane Mwaikambo
On Tue, 12 Apr 2005, Li Shaohua wrote: > #ifdef CONFIG_HOTPLUG_CPU > +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) > +{ > + return 0; > +} > + Any way for you to avoid using weak attribute? Thanks, Zwane - To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Zwane Mwaikambo
On Tue, 12 Apr 2005, Li Shaohua wrote: #ifdef CONFIG_HOTPLUG_CPU +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) +{ + return 0; +} + Any way for you to avoid using weak attribute? Thanks, Zwane - To unsubscribe from this list: send the line unsubscribe linux-kernel in

Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Zwane Mwaikambo
On Tue, 12 Apr 2005, Li Shaohua wrote: On Tue, 2005-04-12 at 20:17, Zwane Mwaikambo wrote: On Tue, 12 Apr 2005, Li Shaohua wrote: #ifdef CONFIG_HOTPLUG_CPU +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) +{ + return 0; +} + Any way for you to avoid using weak

Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Li Shaohua
On Tue, 2005-04-12 at 20:17, Zwane Mwaikambo wrote: On Tue, 12 Apr 2005, Li Shaohua wrote: #ifdef CONFIG_HOTPLUG_CPU +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) +{ + return 0; +} + Any way for you to avoid using weak attribute? Just want to avoid more 'ifdef' or

Re: [PATCH 5/6]physical CPU hot add

2005-04-12 Thread Li Shaohua
On Tue, 2005-04-12 at 20:17, Zwane Mwaikambo wrote: On Tue, 12 Apr 2005, Li Shaohua wrote: #ifdef CONFIG_HOTPLUG_CPU +int __attribute__ ((weak)) smp_prepare_cpu(int cpu) +{ + return 0; +} + Any way for you to avoid using weak attribute? Replace weak attribute with define

[PATCH 5/6]physical CPU hot add

2005-04-11 Thread Li Shaohua
Boot a CPU at runtime. Signed-off-by: Li Shaohua<[EMAIL PROTECTED]> --- linux-2.6.11-root/arch/i386/kernel/smpboot.c | 112 --- linux-2.6.11-root/drivers/base/cpu.c |8 + linux-2.6.11-root/include/asm-i386/smp.h |2 3 files changed, 93

[PATCH 5/6]physical CPU hot add

2005-04-11 Thread Li Shaohua
Boot a CPU at runtime. Signed-off-by: Li Shaohua[EMAIL PROTECTED] --- linux-2.6.11-root/arch/i386/kernel/smpboot.c | 112 --- linux-2.6.11-root/drivers/base/cpu.c |8 + linux-2.6.11-root/include/asm-i386/smp.h |2 3 files changed, 93 insertions(+),