From: Hollis Blanchard Subject: do_softirq + interrupts Date: Thu, 1 Sep 2005 18:14:48 -0500 Message-ID: <200509011814.48047.hollisb@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On PPC I'm having a race with do_softirq, so I'm trying to figure out how x86 calls it. As far as I can tell, it looks like this: apic_timer_interrupt smp_apic_timer_interrupt [raise TIMER_SOFTIRQ)] ret_from_intr test_all_events [sees TIMER_SOFTIRQ] do_softirq() *** pending = softirq_pending(cpu); ASSERT(pending != 0); ... iret What confuses me is that any other interrupt could come in at point *** above, right? That interrupt will follow a very similar path, calling do_softirq again, and handle TIMER_SOFTIRQ. Then when the first do_softirq resumes, the ASSERT will trip. What am I missing? -- Hollis Blanchard IBM Linux Technology Center