[PATCH] uml: Remove unused variable
authorJeff Dike <jdike@addtoit.com>
Tue, 26 Sep 2006 06:33:06 +0000 (23:33 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:49:08 +0000 (08:49 -0700)
timer_irq_inited was useless, so it is removed.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/include/kern_util.h
arch/um/kernel/time.c
arch/um/os-Linux/signal.c

index b98bdd8..89e1dc8 100644 (file)
@@ -27,7 +27,6 @@ extern int ncpus;
 extern char *linux_prog;
 extern char *gdb_init;
 extern int kmalloc_ok;
-extern int timer_irq_inited;
 extern int jail;
 extern int nsyscalls;
 
index d1d7993..2454bbd 100644 (file)
@@ -35,9 +35,6 @@ unsigned long long sched_clock(void)
        return (unsigned long long)jiffies_64 * (1000000000 / HZ);
 }
 
-/* Changed at early boot */
-int timer_irq_inited = 0;
-
 static unsigned long long prev_nsecs;
 #ifdef CONFIG_UML_REAL_TIME_CLOCK
 static long long delta;                /* Deviation per interval */
@@ -116,8 +113,6 @@ static void register_timer(void)
                printk(KERN_ERR "register_timer : request_irq failed - "
                       "errno = %d\n", -err);
 
-       timer_irq_inited = 1;
-
        err = set_interval(1);
        if(err != 0)
                printk(KERN_ERR "register_timer : set_interval failed - "
index 55b62e2..6b81739 100644 (file)
@@ -55,15 +55,8 @@ void sig_handler(int sig, struct sigcontext *sc)
        set_signals(enabled);
 }
 
-extern int timer_irq_inited;
-
 static void real_alarm_handler(int sig, struct sigcontext *sc)
 {
-       if(!timer_irq_inited){
-               signals_enabled = 1;
-               return;
-       }
-
        if(sig == SIGALRM)
                switch_timers(0);