X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Falpha%2Fkernel%2Fsys_ruffian.c;h=ccabcb1e3724c449533a5ac20d2a20903bdbf1b7;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=3438b8d4880d9f160773c1857c62de4f754dab2a;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/arch/alpha/kernel/sys_ruffian.c b/arch/alpha/kernel/sys_ruffian.c index 3438b8d48..ccabcb1e3 100644 --- a/arch/alpha/kernel/sys_ruffian.c +++ b/arch/alpha/kernel/sys_ruffian.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "proto.h" #include "irq_impl.h" @@ -64,6 +65,8 @@ ruffian_init_irq(void) common_init_isa_dma(); } +#define RUFFIAN_LATCH ((PIT_TICK_RATE + HZ / 2) / HZ) + static void __init ruffian_init_rtc(void) { @@ -72,8 +75,8 @@ ruffian_init_rtc(void) /* Setup interval timer. */ outb(0x34, 0x43); /* binary, mode 2, LSB/MSB, ch 0 */ - outb(LATCH & 0xff, 0x40); /* LSB */ - outb(LATCH >> 8, 0x40); /* MSB */ + outb(RUFFIAN_LATCH & 0xff, 0x40); /* LSB */ + outb(RUFFIAN_LATCH >> 8, 0x40); /* MSB */ outb(0xb6, 0x43); /* pit counter 2: speaker */ outb(0x31, 0x42);