e9e2cdb412
Add clockevent drivers for i386: lapic (local) and PIT/HPET (global). Update the timer IRQ to call into the PIT/HPET driver's event handler and the lapic-timer IRQ to call into the lapic clockevent driver. The assignement of timer functionality is delegated to the core framework code and replaces the compile and runtime evalution in do_timer_interrupt_hook() Use the clockevents broadcast support and implement the lapic_broadcast function for ACPI. No changes to existing functionality. [ kdump fix from Vivek Goyal <vgoyal@in.ibm.com> ] [ fixes based on review feedback from Arjan van de Ven <arjan@infradead.org> ] Cleanups-from: Adrian Bunk <bunk@stusta.de> Build-fixes-from: Andrew Morton <akpm@osdl.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: john stultz <johnstul@us.ibm.com> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 lines
394 B
C
19 lines
394 B
C
/* defines for inline arch setup functions */
|
|
#include <linux/clockchips.h>
|
|
|
|
#include <asm/voyager.h>
|
|
#include <asm/i8253.h>
|
|
|
|
/**
|
|
* do_timer_interrupt_hook - hook into timer tick
|
|
* @regs: standard registers from interrupt
|
|
*
|
|
* Call the pit clock event handler. see asm/i8253.h
|
|
**/
|
|
static inline void do_timer_interrupt_hook(void)
|
|
{
|
|
pit_interrupt_hook();
|
|
voyager_timer_interrupt();
|
|
}
|
|
|