• Rusty Russell's avatar
    [PATCH] Hotplug CPUs: Make ksoftirqd Handle CPU Going Down · 010b27dc
    Rusty Russell authored
    Change ksoftirqd not to assume it's on the CPU: when a cpu goes down,
    it will be rudely dragged off.  Since do_softirq() uses
    smp_processor_id(), it's easiest to disable preemption, check that the
    cpu is still up, then call do_softirq().
    
    If the cpu is actually offline, wait for the notifier, which kills us.
    
    Take over tasklets from dead cpu in the notifier.
    
    Clean up redundant double assignment in CPU_UP callback.
    010b27dc
softirq.c 10.3 KB