linux/kernel/power
Rafael J. Wysocki ebb12db51f Freezer: Introduce PF_FREEZER_NOSIG
The freezer currently attempts to distinguish kernel threads from
user space tasks by checking if their mm pointer is unset and it
does not send fake signals to kernel threads.  However, there are
kernel threads, mostly related to networking, that behave like
user space tasks and may want to be sent a fake signal to be frozen.

Introduce the new process flag PF_FREEZER_NOSIG that will be set
by default for all kernel threads and make the freezer only send
fake signals to the tasks having PF_FREEZER_NOSIG unset.  Provide
the set_freezable_with_signal() function to be called by the kernel
threads that want to be sent a fake signal for freezing.

This patch should not change the freezer's observable behavior.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-07-16 23:27:03 +02:00
..
console.c PM/gxfb: add hook to PM console layer that allows disabling of suspend VT switch 2008-04-28 08:58:36 -07:00
disk.c PM: Introduce PM_EVENT_HIBERNATE callback state 2008-02-23 10:40:04 -08:00
Kconfig PM: Remove legacy PM 2008-04-15 03:19:07 -04:00
main.c Suspend: Invoke suspend notifications after console switch 2008-02-01 18:30:58 -05:00
Makefile PM: Remove legacy PM 2008-04-15 03:19:07 -04:00
power.h Suspend: Add config option to disable the freezer if architecture wants that 2008-02-01 18:30:58 -05:00
poweroff.c WorkStruct: Pass the work_struct pointer instead of context data 2006-11-22 14:55:48 +00:00
process.c Freezer: Introduce PF_FREEZER_NOSIG 2008-07-16 23:27:03 +02:00
snapshot.c Hibernation: Fix mark_nosave_pages() 2008-03-11 23:15:55 -04:00
swap.c Hibernation: Update messages 2008-02-01 18:30:55 -05:00
swsusp.c Hibernation: Update messages 2008-02-01 18:30:55 -05:00
user.c Hibernation: Add PM_RESTORE_PREPARE and PM_POST_RESTORE notifiers (rev. 2) 2008-02-01 18:30:53 -05:00