Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84966
b: refs/heads/master
c: 4200c35
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Nilsson committed Feb 8, 2008
1 parent 6b5d4d3 commit 39ada6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72af70cfecbcd4198ebe8ff7634d31ed4b4675e0
refs/heads/master: 4200c35d20f20948e2276553c64d0db3a5398a0c
35 changes: 14 additions & 21 deletions trunk/arch/cris/arch-v10/kernel/fasttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@

#define DEBUG_LOG_INCLUDED
#define FAST_TIMER_LOG
//#define FAST_TIMER_TEST
/* #define FAST_TIMER_TEST */

#define FAST_TIMER_SANITY_CHECKS

#ifdef FAST_TIMER_SANITY_CHECKS
#define SANITYCHECK(x) x
static int sanity_failed;
#else
#define SANITYCHECK(x)
#endif

#define D1(x)
Expand Down Expand Up @@ -226,23 +223,19 @@ void start_one_shot_timer(struct fast_timer *t,
do_gettimeofday_fast(&t->tv_set);
tmp = fast_timer_list;

SANITYCHECK({ /* Check so this is not in the list already... */
while (tmp != NULL)
{
if (tmp == t)
{
printk(KERN_WARNING
"timer name: %s data: 0x%08lX already in list!\n", name, data);
sanity_failed++;
goto done;
}
else
{
tmp = tmp->next;
}
}
tmp = fast_timer_list;
});
#ifdef FAST_TIMER_SANITY_CHECKS
/* Check so this is not in the list already... */
while (tmp != NULL) {
if (tmp == t) {
printk(KERN_WARNING "timer name: %s data: "
"0x%08lX already in list!\n", name, data);
sanity_failed++;
goto done;
} else
tmp = tmp->next;
}
tmp = fast_timer_list;
#endif

t->delay_us = delay_us;
t->function = function;
Expand Down

0 comments on commit 39ada6d

Please sign in to comment.