]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Fix pm_notifiers during user mode hibernation
authorAndrey Borzenkov <arvidjaar@mail.ru>
Sat, 14 Feb 2009 01:05:14 +0000 (02:05 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Feb 2009 22:17:17 +0000 (14:17 -0800)
commit11d181936e5c67efd5c5148a9b031bf0ae45e1e6
treeb385e3b401ab8bc2f278aa36a03a639bf1ea61cd
parent205699a9bb36eb6944c886262bf8094bfc659b8e
PM: Fix pm_notifiers during user mode hibernation

Snapshot device is opened with O_RDONLY during suspend and O_WRONLY durig
resume.  Make sure we also call notifiers with correct parameter telling
them what we are really doing.

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <gregkh@suse.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/power/user.c