x86: assign IRQs to HPET timers
authorBalaji Rao <balajirrao@gmail.com>
Wed, 30 Jan 2008 12:30:03 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:03 +0000 (13:30 +0100)
commite3f37a54f690d3e64995ea7ecea08c5ab3070faf
tree1d9d62d95b747ef47cdf994357bd9a41d02889a3
parent45fe4fe19120a22f7339f5bb110447170c25fca9
x86: assign IRQs to HPET timers

The userspace API for the HPET (see Documentation/hpet.txt) did not work. The
HPET_IE_ON ioctl was failing as there was no IRQ assigned to the timer
device. This patch fixes it by allocating IRQs to timer blocks in the HPET.

arch/x86/kernel/hpet.c |   13 +++++--------
drivers/char/hpet.c    |   45 ++++++++++++++++++++++++++++++++++++++-------
include/linux/hpet.h   |    2 +-
3 files changed, 44 insertions(+), 16 deletions(-)

Signed-off-by: Balaji Rao <balajirrao@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/hpet.c
drivers/char/hpet.c
include/linux/hpet.h