From: Rafael J. Wysocki Date: Sat, 12 Jan 2008 19:40:46 +0000 (+0100) Subject: PM: Acquire device locks on suspend X-Git-Tag: v2.6.25-rc1~1243^2~181 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=775b64d2b6ca37697de925f70799c710aab5849a;p=pandora-kernel.git PM: Acquire device locks on suspend This patch reorganizes the way suspend and resume notifications are sent to drivers. The major changes are that now the PM core acquires every device semaphore before calling the methods, and calls to device_add() during suspends will fail, while calls to device_del() during suspends will block. It also provides a way to safely remove a suspended device with the help of the PM core, by using the device_pm_schedule_removal() callback introduced specifically for this purpose, and updates two drivers (msr and cpuid) that need to use it. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed