PM: disable usermode helper before hibernation and suspend
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 19 Jul 2007 08:47:36 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:42 +0000 (10:04 -0700)
commit8cdd4936c17bd8085cb0dfacc4a37ccf8d0ada7b
tree0a9ff7cf1b1a797b1267beeb317507210f4dd170
parentb10d911749d37dccfa5873d2088aea3f074b9e45
PM: disable usermode helper before hibernation and suspend

Use a hibernation and suspend notifier to disable the user mode helper before
a hibernation/suspend and enable it after the operation.

[akpm@linux-foundation.org: build fix]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Nigel Cunningham <nigel@nigel.suspend2.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kmod.c