mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 00:42:16 +00:00
CRIS v32: Change debug and formatting in kernel/fasttimer.c
- Don't use SANITYCHECK(x) as a macro, test FAST_TIMER_SANITY_CHECKS with ifdef. This makes it possible for automatic indent etc to work. - Correct some whitespace errors. - Don't initialize static variable.
This commit is contained in:
parent
43e6bd6aa8
commit
f64dd2191d
@ -44,10 +44,7 @@
|
|||||||
#define FAST_TIMER_SANITY_CHECKS
|
#define FAST_TIMER_SANITY_CHECKS
|
||||||
|
|
||||||
#ifdef FAST_TIMER_SANITY_CHECKS
|
#ifdef FAST_TIMER_SANITY_CHECKS
|
||||||
#define SANITYCHECK(x) x
|
static int sanity_failed;
|
||||||
static int sanity_failed = 0;
|
|
||||||
#else
|
|
||||||
#define SANITYCHECK(x)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define D1(x)
|
#define D1(x)
|
||||||
@ -206,7 +203,8 @@ void start_one_shot_timer(struct fast_timer *t,
|
|||||||
do_gettimeofday_fast(&t->tv_set);
|
do_gettimeofday_fast(&t->tv_set);
|
||||||
tmp = fast_timer_list;
|
tmp = fast_timer_list;
|
||||||
|
|
||||||
SANITYCHECK({ /* Check so this is not in the list already... */
|
#ifdef FAST_TIMER_SANITY_CHECKS
|
||||||
|
/* Check so this is not in the list already... */
|
||||||
while (tmp != NULL) {
|
while (tmp != NULL) {
|
||||||
if (tmp == t) {
|
if (tmp == t) {
|
||||||
printk(KERN_DEBUG
|
printk(KERN_DEBUG
|
||||||
@ -218,7 +216,7 @@ void start_one_shot_timer(struct fast_timer *t,
|
|||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
tmp = fast_timer_list;
|
tmp = fast_timer_list;
|
||||||
});
|
#endif
|
||||||
|
|
||||||
t->delay_us = delay_us;
|
t->delay_us = delay_us;
|
||||||
t->function = function;
|
t->function = function;
|
||||||
|
Loading…
Reference in New Issue
Block a user