diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v32/kernel/fasttimer.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/arch/cris/arch-v32/kernel/fasttimer.c b/arch/cris/arch-v32/kernel/fasttimer.c index 30514625eee0..2de9d5849ef0 100644 --- a/arch/cris/arch-v32/kernel/fasttimer.c +++ b/arch/cris/arch-v32/kernel/fasttimer.c | |||
@@ -44,10 +44,7 @@ | |||
44 | #define FAST_TIMER_SANITY_CHECKS | 44 | #define FAST_TIMER_SANITY_CHECKS |
45 | 45 | ||
46 | #ifdef FAST_TIMER_SANITY_CHECKS | 46 | #ifdef FAST_TIMER_SANITY_CHECKS |
47 | #define SANITYCHECK(x) x | 47 | static int sanity_failed; |
48 | static int sanity_failed = 0; | ||
49 | #else | ||
50 | #define SANITYCHECK(x) | ||
51 | #endif | 48 | #endif |
52 | 49 | ||
53 | #define D1(x) | 50 | #define D1(x) |
@@ -206,7 +203,8 @@ void start_one_shot_timer(struct fast_timer *t, | |||
206 | do_gettimeofday_fast(&t->tv_set); | 203 | do_gettimeofday_fast(&t->tv_set); |
207 | tmp = fast_timer_list; | 204 | tmp = fast_timer_list; |
208 | 205 | ||
209 | SANITYCHECK({ /* Check so this is not in the list already... */ | 206 | #ifdef FAST_TIMER_SANITY_CHECKS |
207 | /* Check so this is not in the list already... */ | ||
210 | while (tmp != NULL) { | 208 | while (tmp != NULL) { |
211 | if (tmp == t) { | 209 | if (tmp == t) { |
212 | printk(KERN_DEBUG | 210 | printk(KERN_DEBUG |
@@ -215,10 +213,10 @@ void start_one_shot_timer(struct fast_timer *t, | |||
215 | sanity_failed++; | 213 | sanity_failed++; |
216 | goto done; | 214 | goto done; |
217 | } else | 215 | } else |
218 | tmp = tmp->next; | 216 | tmp = tmp->next; |
219 | } | 217 | } |
220 | tmp = fast_timer_list; | 218 | tmp = fast_timer_list; |
221 | }); | 219 | #endif |
222 | 220 | ||
223 | t->delay_us = delay_us; | 221 | t->delay_us = delay_us; |
224 | t->function = function; | 222 | t->function = function; |