commit | 21f7638e6f05c36b35a36cd4311e08be5dc00bb1 | [log] [tgz] |
---|---|---|
author | Matt Carlson <mcarlson@broadcom.com> | Wed Feb 22 12:35:21 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Feb 23 01:57:17 2012 -0500 |
tree | 2d88f0e8299cbc613dce1509293f349fe6bf93bb | |
parent | c71013597d49c7ca8bb5049f0c7873df2643fad5 [diff] |
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>