From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752001AbYIVEev (ORCPT ); Mon, 22 Sep 2008 00:34:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751100AbYIVEen (ORCPT ); Mon, 22 Sep 2008 00:34:43 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]:56672 "EHLO e1.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899AbYIVEem (ORCPT ); Mon, 22 Sep 2008 00:34:42 -0400 From: Krishna Kumar To: linux-kernel@vger.kernel.org Cc: Krishna Kumar , Andrew Morton Date: Mon, 22 Sep 2008 10:04:38 +0530 Message-Id: <20080922043438.21118.93359.sendpatchset@localhost.localdomain> In-Reply-To: <20080922043425.21118.24172.sendpatchset@localhost.localdomain> References: <20080922043425.21118.24172.sendpatchset@localhost.localdomain> Subject: [RFC] [PATCH 1/1]: timers: Change add_timer to use add_timer_on Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krishna Kumar timer: Change add_timer to not check for existing timer. Signed-off-by: Krishna Kumar --- include/linux/timer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -ruNp 2.6.27-rc7-org/include/linux/timer.h 2.6.27-rc7-new/include/linux/timer.h --- 2.6.27-rc7-org/include/linux/timer.h 2008-09-17 17:40:36.000000000 +0530 +++ 2.6.27-rc7-new/include/linux/timer.h 2008-09-17 17:41:50.000000000 +0530 @@ -4,6 +4,7 @@ #include #include #include +#include #include struct tvec_base; @@ -162,8 +163,7 @@ static inline void timer_stats_timer_cle */ static inline void add_timer(struct timer_list *timer) { - BUG_ON(timer_pending(timer)); - __mod_timer(timer, timer->expires); + add_timer_on(timer, raw_smp_processor_id()); } #ifdef CONFIG_SMP