netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sky2: Use deferrable timer for watchdog
@ 2007-12-19  1:13 Parag Warudkar
  2007-12-20 17:16 ` Stephen Hemminger
  0 siblings, 1 reply; 14+ messages in thread
From: Parag Warudkar @ 2007-12-19  1:13 UTC (permalink / raw)
  To: netdev; +Cc: shemminger, akpm, linux-kernel


sky2 can use deferrable timer for watchdog - reduces wakeups from idle per 
second.

Signed-off-by: Parag Warudkar <parag.warudkar@gmail.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);

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-12-20 21:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19  1:13 [PATCH] sky2: Use deferrable timer for watchdog Parag Warudkar
2007-12-20 17:16 ` Stephen Hemminger
     [not found]   ` <823114761-1198171803-cardhu_decombobulator_blackberry.rim.net-937108990-@bxe019.bisx.prod.on.blackberry>
2007-12-20 17:51     ` Stephen Hemminger
2007-12-20 18:05       ` Parag Warudkar
2007-12-20 19:09       ` Kok, Auke
2007-12-20 19:11         ` Arjan van de Ven
2007-12-20 19:22           ` Kok, Auke
2007-12-20 19:42             ` Arjan van de Ven
2007-12-20 20:00             ` Parag Warudkar
2007-12-20 20:04               ` Arjan van de Ven
2007-12-20 20:36                 ` Parag Warudkar
2007-12-20 21:08                   ` Stephen Hemminger
2007-12-20 21:24                     ` Kok, Auke
2007-12-20 20:17               ` Krzysztof Oledzki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).