]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Refactor cpu pause/resume code
authorNithin Sujir <nsujir@broadcom.com>
Wed, 6 Mar 2013 17:02:30 +0000 (17:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 20:31:31 +0000 (15:31 -0500)
commit25d5570f8eb234e645ec766c1f7d61d5e12c7ebe
tree1598d81faef8eddcc750e3efd0edbe9bf2ed3f96
parent2c886792107997c5c862146ee5cd6b57a62decd2
tg3: Refactor cpu pause/resume code

The 57766 rxcpu needs to be paused/resumed when we download the firmware just
like we do for existing firmware. Refactor the pause/resume code to be
reusable.

This patch also renames the "offset" argument of tg3_halt_cpu to "cpu_base"
since that's what it really is.

Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c