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)
commit837c45bb4eaf367ac738c8d746990da33b3402ee
tree1598d81faef8eddcc750e3efd0edbe9bf2ed3f96
parent1caf13ebc8c0809ad6203c0836391ba593b13530
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