arch/x86/kernel/smpboot.c: Clarify when irq processing begins.
PATCH 1/1 arch/x86/kernel/smpboot.c: Clarify when irq processing begins.
Secondary cpus start with local interrupts disabled. start_secondary() first initializes the new cpu, then it enables the local interrupts. (although interrupts are enabled within smp_callin() as well).
Right now, the local interrupts are enabled as a side effect of calling ipi_call_lock_irq().
The attached patch clarifies when local interrupts are enabled.
--- arch/x86/kernel/smpboot.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
arch/x86/kernel/smpboot.c +5 -2
@@ -327,14 +327,17 @@ static void __cpuinit start_secondary(void *unused)* lock helps us to not include this cpu in a currently in progress * smp_call_function(). */ -ipi_call_lock_irq (); +ipi_call_lock ();#ifdef CONFIG_X86_IO_APIC setup_vector_irq (smp_processor_id ());#endif cpu_set (smp_processor_id (), cpu_online_map); -ipi_call_unlock_irq (); +ipi_call_unlock ();per_cpu (cpu_state,smp_processor_id ()) =CPU_ONLINE ; +/* enable local interrupts */ +local_irq_enable (); +setup_secondary_clock ();wmb ();
Signature · 1 line
1.5.5.1
Ingo Molnar
AppliedQuoted 8 lines · Manfred Spraul
Secondary cpus start with local interrupts disabled.
start_secondary()first initializes the new cpu, then it enables the local interrupts. (although interrupts are enabled withinsmp_callin()as well).
Right now, the local interrupts are enabled as a side effect of callingipi_call_lock_irq().The attached patch clarifies when local interrupts are enabled.
applied to tip/x86/core, thanks Manfred.
[ btw., i fixed this typo:
Quoted 1 line
Signed-of-By Manfred Spraul <[email protected]>
Signed-off-by
"git commit -s" will add your signoff automatically. ]
Ingo