i386: Fix regression introduced by commit 8c63d47651f7
authorGraeme Russ <graeme.russ@gmail.com>
Sun, 23 Aug 2009 02:59:47 +0000 (12:59 +1000)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:09 +0000 (09:04 -0500)
A local variable was deleted that should not have been

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
lib_i386/pcat_timer.c

index e282f64..c351b23 100644 (file)
 #include <asm/io.h>
 #include <asm/i8254.h>
 #include <asm/ibmpc.h>
+#include <asm/interrupt.h>
 
 #define TIMER0_VALUE 0x04aa /* 1kHz 1.9318MHz / 1000 */
 #define TIMER2_VALUE 0x0a8e /* 440Hz */
 
+static int timer_init_done = 0;
+
 int timer_init(void)
 {
        /* initialize timer 0 and 2
@@ -52,6 +55,8 @@ int timer_init(void)
        irq_install_handler (0, timer_isr, NULL);
        unmask_irq (0);
 
+       timer_init_done = 1;
+
        return 0;
 }