diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-05-08 17:08:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-05-08 18:01:30 +0200 |
commit | 5536c6d69376273d5210ce05b7d5d462f0dff9d6 (patch) | |
tree | d65dd8459225d8d6eb49ba8e3f321120274bea14 /sound/pci/hda/hda_codec.h | |
parent | 339876d70a5794c0d5fe09d37827c63148d5017a (diff) |
ALSA: hda - Protect the power-saving count with spinlock
To avoid some races. Still not perfect, but now a bit safer.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 0fe64912cef..77cd99531aa 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -867,6 +867,7 @@ struct hda_codec { unsigned long power_on_acct; unsigned long power_off_acct; unsigned long power_jiffies; + spinlock_t power_lock; #endif /* codec-specific additional proc output */ |