Keith Owens wrote:
>
> On Sat, 15 Sep 2001 01:43:45 -0700,
> "Matt D. Robinson" <yakker@xxxxxxxxxxxxxx> wrote:
> > cli();
> > saved_cpu_online_map = cpu_online_map;
> > cpu_online_map = smp_processor_id();
> > setup_IO_APIC_irqs();
> > cpu_online_map = saved_cpu_online_map;
> > sti();
>
> setup_IO_APIC_irqs() is defined __init, the code does not exist after
> boot. Sounds like you need Rusty Russell's hot swap cpu code,
> http://sourceforge.net/projects/lhcs/.
Easy enough to remove the __init ... :)
Rusty's code is close to what want, but doesn't do enough with the
IO-APIC (directly). It's a combination of both, I think.
Time to read more of Rusty's code. It looks like most of the
__cpu_disable() function can be used, but changed to only go to
the dumping CPU (not any active CPU).
--Matt
|