[Linux-ia64] PATCH 2.5.68] mod_timer fixes for ia64/sn/kernel/mca.c

From: Vinay K Nallamothu <vinay-rc_at_naturesoft.net>
Date: 2003-05-03 22:48:00
Hi,

Few more {del,add}_timer to mod_timer conversions.

vinay

PS: I am not on the mailing list.

--- linux-2.5.68/arch/ia64/sn/kernel/mca.c	2003-03-25 10:07:20.000000000 +0530
+++ linux-2.5.68-nvk/arch/ia64/sn/kernel/mca.c	2003-05-03 16:50:57.000000000 +0530
@@ -246,9 +246,7 @@
 void
 sn_cpei_timer_handler(unsigned long dummy) {
         sn_cpei_handler(-1, NULL, NULL);
-        del_timer(&sn_cpei_timer);
-        sn_cpei_timer.expires = jiffies + CPEI_INTERVAL;
-        add_timer(&sn_cpei_timer);
+        mod_timer(&sn_cpei_timer, jiffies + CPEI_INTERVAL);
 }
 
 void
@@ -267,9 +265,7 @@
         unsigned long *pi_ce_error_inject_reg = 0xc00000092fffff00;
 
         *pi_ce_error_inject_reg = 0x0000000000000100;
-        del_timer(&sn_ce_timer);
-        sn_ce_timer.expires = jiffies + CPEI_INTERVAL;
-        add_timer(&sn_ce_timer);
+        mod_timer(&sn_ce_timer, jiifies + CPEI_INTERVAL);
 }
 
 sn_init_ce_timer() {
Received on Sat May 03 05:43:22 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:14 EST