Messages in this thread Patch in this message | | | Subject | Re: [PATCH] fix bad macro param in timer.c | From | Steven Rostedt <> | Date | Mon, 17 Jul 2006 21:59:46 -0400 |
| |
Joe Perches suggested another set of parans. And I believe he's right.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Index: linux-2.6.18-rc2/kernel/timer.c =================================================================== --- linux-2.6.18-rc2.orig/kernel/timer.c 2006-07-17 21:42:01.000000000 -0400 +++ linux-2.6.18-rc2/kernel/timer.c 2006-07-17 21:56:49.000000000 -0400 @@ -408,7 +408,7 @@ static int cascade(tvec_base_t *base, tv * 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) {
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |