]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Create timer helper functions
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 22 Feb 2012 12:35:21 +0000 (12:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2012 06:57:17 +0000 (01:57 -0500)
commit1c7e648ae00db05d23a5228ebd2d9b2c1f383ef8
tree2d88f0e8299cbc613dce1509293f349fe6bf93bb
parent379e0e85d217bd869ea8e89b39c30fcf46254a40
tg3: Create timer helper functions

This patch seeks to clean up the timer related code.  It begins by
moving one-time timer setup code from tg3_open() to tg3_init_one().
It then creates a function that encapsulates the code needed to start
the timer.  A tg3_timer_stop() function was added for parity.  Finally,
this patch moves all the timer functions to a more suitable location.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c