commit | 6f5c8f8317d37045ffc7ea21dab8319a53c1ae57 | [log] [tgz] |
---|---|---|
author | Matt Carlson <mcarlson@broadcom.com> | Wed Jul 13 09:27:31 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Jul 14 08:41:59 2011 -0700 |
tree | 21bf19658f1997346780e5ed5fd72093f2c57107 | |
parent | 69f11c9936ba310ed3620072983da6ed95e86cc0 [diff] |
tg3: Create critical section around GPIO toggling The code that performs the power source switching will need to consider the status of the other devices before making any switches. The status updates and power source switching will need to be an atomic operation, so a critical section will be needed. This patch establishes the critical section through a CPMU mutex. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>