Re: Hooking to APIC timer on SMP 32-bit X86 system

From: Robert Hancock
Date: Sun Apr 06 2008 - 16:44:22 EST


YM Yen wrote:
hi,

I am looking for a way to program the APIC timer in a kernel module so that the module depends only on the hardware timer instead of the timer provided by the kernel. Programming the LVT is easy, however I can't find a way to have the Linux kernel to call my interrupt service routine in addition to smp_apic_timer_interrupt().

Is doing this even possible? There doesn't seem to be any sort of hook or notifier chain I can install a ISR to. Thanks in advance.

It might be possible, but likely not easy and not recommended. Why is a kernel timer not sufficient for what you need?
--
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/