Commit 82e0df68 authored by Paolo \'Blaisorblade\' Giarrusso's avatar Paolo \'Blaisorblade\' Giarrusso Committed by Linus Torvalds

[PATCH] uml: fix warning for unused var

That var is used only when CONFIG_UML_REAL_TIME_CLOCK is on, so #ifdef its
definition.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 806bf1f9
...@@ -44,7 +44,9 @@ int timer_irq_inited = 0; ...@@ -44,7 +44,9 @@ int timer_irq_inited = 0;
static int first_tick; static int first_tick;
static unsigned long long prev_usecs; static unsigned long long prev_usecs;
#ifdef CONFIG_UML_REAL_TIME_CLOCK
static long long delta; /* Deviation per interval */ static long long delta; /* Deviation per interval */
#endif
#define MILLION 1000000 #define MILLION 1000000
...@@ -60,7 +62,7 @@ void timer_irq(union uml_pt_regs *regs) ...@@ -60,7 +62,7 @@ void timer_irq(union uml_pt_regs *regs)
} }
if(first_tick){ if(first_tick){
#if defined(CONFIG_UML_REAL_TIME_CLOCK) #ifdef CONFIG_UML_REAL_TIME_CLOCK
/* We've had 1 tick */ /* We've had 1 tick */
unsigned long long usecs = os_usecs(); unsigned long long usecs = os_usecs();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment