Re: [PATCH] i386: Fix softirq accounting with 4K stacks

From: Björn Steinbrink
Date: Mon Jun 26 2006 - 20:55:37 EST


On 2006.06.26 18:54:00 -0400, Chuck Ebbert wrote:
> In-Reply-To: <20060625184244.GA11921@xxxxxxxxxxxxxx>
>
> On Sun, 25 Jun 2006 20:42:44 +0200, Bjorn Steinbrink wrote:
>
> > Btw, which path do apic irqs go? I stumbled across the nmi stuff, but
> > didn't see anything special for the apic irqs.
>
> arch/i386/kernel/entry.S has the macro BUILD_INTERRUPT(name, nr).
>
> The code that uses this macro is in arch/i386/mach-*/entry_arch.h.
>
> The macro prepends "smp_" to the name passed to the macro and the
> generated asm code calls that function after saving registers, etc.
>
> arch/i386/kernel/apic.c::apic_intr_init() calls set_intr_gate() to
> point some of the interrupt gates at the correct functions.

Thanks, my view on the code was too cscope-centric and the grep runs
searched for the full function name.
That finally explains why calling update_process_times() in
smp_local_timer_interrupt() makes a difference on UP.

Björn
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/