diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2021-01-17 14:10:38 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2021-02-05 12:52:34 +0300 |
commit | 00520b7a2a13db5c6b56cc1f49cea4e0e174479c (patch) | |
tree | 3980f562451283142971d459150444b572fae8b0 /drivers/clocksource/timer-imx-gpt.c | |
parent | 6275c77e77b24d583366d54e726c2ae144dc3d1a (diff) | |
download | linux-00520b7a2a13db5c6b56cc1f49cea4e0e174479c.tar.xz |
iwlwifi: mvm: don't check system_pm_mode without mutex held
When we want to stop TX'ing because we are suspending, we
have two options: either we check system_pm_mode or we
check the mvm's status that has a bit for the suspend
flow.
The latter is better because test_bit is atomic. Also
add a call to synchronize_net after we set the bit to
make sure that all the new Tx see the bit before we
actually complete the suspend flow.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210117130510.243c88781302.I5c0379c5a7e5d49410569e7fcd2fff7a419c6dea@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/clocksource/timer-imx-gpt.c')
0 files changed, 0 insertions, 0 deletions