linux_dsm_epyc7002/drivers/input/serio
Rafael J. Wysocki 8314418629 Freezer: make kernel threads nonfreezable by default
Currently, the freezer treats all tasks as freezable, except for the kernel
threads that explicitly set the PF_NOFREEZE flag for themselves.  This
approach is problematic, since it requires every kernel thread to either
set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
care for the freezing of tasks at all.

It seems better to only require the kernel threads that want to or need to
be frozen to use some freezer-related code and to remove any
freezer-related code from the other (nonfreezable) kernel threads, which is
done in this patch.

The patch causes all kernel threads to be nonfreezable by default (ie.  to
have PF_NOFREEZE set by default) and introduces the set_freezable()
function that should be called by the freezable kernel threads in order to
unset PF_NOFREEZE.  It also makes all of the currently freezable kernel
threads call set_freezable(), so it shouldn't cause any (intentional)
change of behaviour to appear.  Additionally, it updates documentation to
describe the freezing of tasks more accurately.

[akpm@linux-foundation.org: build fixes]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Nigel Cunningham <nigel@nigel.suspend2.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:23:02 -07:00
..
ambakmi.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
ct82c710.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
gscps2.c Build fixes for struct pt_regs removal 2006-10-06 20:47:23 -06:00
hil_mlc.c Input: HIL - fix rwlock recursion bug 2007-03-16 00:59:29 -04:00
hp_sdc_mlc.c Input: HIL - fix rwlock recursion bug 2007-03-16 00:59:29 -04:00
hp_sdc.c Input: HIL - fix rwlock recursion bug 2007-03-16 00:59:29 -04:00
i8042-io.h [PATCH] update legacy io handling for pmac 2006-10-01 00:39:23 -07:00
i8042-ip22io.h Input: make i8042_platform_init return 'real' error code 2005-09-04 01:41:38 -05:00
i8042-jazzio.h Input: make i8042_platform_init return 'real' error code 2005-09-04 01:41:38 -05:00
i8042-ppcio.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i8042-sparcio.h [SPARC64]: Fix of_iounmap() region release. 2006-12-31 14:06:05 -08:00
i8042-x86ia64io.h Input: i8042 - add HP Pavilion ZT1000 to the MUX blacklist 2007-06-28 00:44:27 -04:00
i8042.c Input: i8042 - fix AUX port detection with some chips 2007-05-08 01:31:40 -04:00
i8042.h Input: i8042 - get rid of polling timer 2006-09-10 21:57:21 -04:00
Kconfig [PATCH] m68k/HP300: Enable HIL configuration options 2006-10-09 14:54:45 -07:00
libps2.c Storage class should be before const qualifier 2007-02-17 20:11:19 +01:00
maceps2.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
Makefile Input: kill remnants of 98kbd{,-io} and 98spkr 2006-02-15 00:49:48 -05:00
parkbd.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
pcips2.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
q40kbd.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
rpckbd.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
sa1111ps2.c [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
serio_raw.c Input: serio_raw - shut up errorneous warning 2007-07-10 00:38:31 -04:00
serio.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
serport.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00