cpu1: cpu2:
spin_lock_irqsave_intercpu(&L1);
spin_lock_irqsave_intercpu(&L2);
; now both cpu's have disabled their interrupt flags.
send_ipi_to_other_cpu_and_wait_until_it_has_arrived();
send_ipi_to_other_cpu_and \
_wait_until_it_has_arrived();
; will sleep forever.
eg. flush_tlb_all() uses this send_ipi_to_other_cpu_and_wait().
-- Manfred- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/