OSDN Git Service

eeepc-laptop: use a mutex to serialize pci hotplug (resume vs. notify)
authorCorentin Chary <corentincj@iksaif.net>
Tue, 29 Sep 2009 13:48:51 +0000 (15:48 +0200)
committerCorentin Chary <corentincj@iksaif.net>
Wed, 30 Sep 2009 20:17:45 +0000 (22:17 +0200)
commit81461075bd7cdb36911c492684a43c8ee1e0c7cd
treef138766c6a91d670bfff1d3736b71fb294afaba6
parent861622ee73a53b5fb94e81f0e499e04f01562018
eeepc-laptop: use a mutex to serialize pci hotplug (resume vs. notify)

Commit d0265f0 "eeepc-laptop: fix hot-unplug on resume" used a workqueue
to protect pci hotplug against multiple simultaneous calls during
resume.  It seems to work, but a mutex would be more appropriate.

This is in preparation to fix the potential pci hotplug race on unload.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c