]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Create timer helper functions
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 22 Feb 2012 12:35:21 +0000 (12:35 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:05 +0000 (15:23 +0800)
commit0a95bc6125ca9b307976fc86f6ca1d493255e5e9
treea9d653e1e6c3b64ccae954aec617372392004b44
parent6d8af081145638a33562586744bf0294b4b504f9
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.

(cherry picked from commit 21f7638e6f05c36b35a36cd4311e08be5dc00bb1)
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c