[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0712182008160.3616@mini.warudkars.net>
Date: Tue, 18 Dec 2007 20:13:28 -0500 (EST)
From: Parag Warudkar <parag.warudkar@...il.com>
To: netdev@...r.kernel.org
cc: shemminger@...ux-foundation.org, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] sky2: Use deferrable timer for watchdog
sky2 can use deferrable timer for watchdog - reduces wakeups from idle per
second.
Signed-off-by: Parag Warudkar <parag.warudkar@...il.com>
--- linux-2.6/drivers/net/sky2.c 2007-12-07 10:04:39.000000000 -0500
+++ linux-2.6-work/drivers/net/sky2.c 2007-12-18 20:07:58.000000000 -0500
@@ -4230,7 +4230,10 @@
sky2_show_addr(dev1);
}
- setup_timer(&hw->watchdog_timer, sky2_watchdog, (unsigned long) hw);
+ hw->watchdog_timer.function = sky2_watchdog;
+ hw->watchdog_timer.data = (unsigned long) hw;
+ init_timer_deferrable(&hw->watchdog_timer);
+
INIT_WORK(&hw->restart_work, sky2_restart);
pci_set_drvdata(pdev, hw);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists