From d27f80857e98c6873edee9878ab5092993ffb5df Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Sun, 30 Jul 2006 03:03:38 -0700 Subject: [PATCH] --- yaml --- r: 32940 b: refs/heads/master c: 6ea24f9ad18c65cc179593b5cc2a88cdadf8cc0c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index b8a59130c8bf..e67dba4649e2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: be6b5a3505fa0cd54c3b5959a39293f47c648980 +refs/heads/master: 6ea24f9ad18c65cc179593b5cc2a88cdadf8cc0c diff --git a/trunk/kernel/timer.c b/trunk/kernel/timer.c index ee319fc69f40..726caf9a0a69 100644 --- a/trunk/kernel/timer.c +++ b/trunk/kernel/timer.c @@ -408,7 +408,7 @@ static int cascade(tvec_base_t *base, tvec_t *tv, int index) * This function cascades all vectors and executes all expired timer * vectors. */ -#define INDEX(N) (base->timer_jiffies >> (TVR_BITS + N * TVN_BITS)) & TVN_MASK +#define INDEX(N) ((base->timer_jiffies >> (TVR_BITS + (N) * TVN_BITS)) & TVN_MASK) static inline void __run_timers(tvec_base_t *base) {