remarkable-linux/drivers/pcmcia
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
..
at91_cf.c at91: fix enable/disable_irq_wake symmetry in pcmcia driver 2007-05-31 07:58:13 -07:00
au1000_db1x00.c
au1000_generic.c [PATCH] Fix struct device member name in PCMCIA au1000_generic 2007-03-27 09:05:16 -07:00
au1000_generic.h
au1000_pb1x00.c
au1000_xxs1500.c
cardbus.c Remove useless FIND_FIRST_BIT() macro from cardbus.c. 2007-02-17 19:16:31 +01:00
cirrus.h
cistpl.c
cs.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
cs_internal.h
ds.c add new_id to PCMCIA drivers 2007-05-07 12:12:50 -07:00
ds_internal.h
hd64465_ss.c Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
i82092.c
i82092aa.h
i82365.c
i82365.h
Kconfig [POWERPC] 8xx: mpc885ads pcmcia support 2007-07-10 00:33:51 -05:00
m8xx_pcmcia.c [POWERPC] 8xx: mpc885ads pcmcia support 2007-07-10 00:33:51 -05:00
m32r_cfc.c Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
m32r_cfc.h
m32r_pcc.c
m32r_pcc.h
Makefile
o2micro.h
omap_cf.c [PATCH] omap_cf: oops-on-suspend fix 2007-04-08 19:47:55 -07:00
pcmcia_ioctl.c
pcmcia_resource.c
pd6729.c
pd6729.h
pxa2xx_base.c
pxa2xx_base.h
pxa2xx_lubbock.c
pxa2xx_mainstone.c fix hotplug for legacy platform drivers 2007-05-08 11:15:10 -07:00
pxa2xx_sharpsl.c fix hotplug for legacy platform drivers 2007-05-08 11:15:10 -07:00
ricoh.h
rsrc_mgr.c Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
rsrc_nonstatic.c
sa11xx_base.c
sa11xx_base.h
sa1100_assabet.c
sa1100_badge4.c
sa1100_cerf.c
sa1100_generic.c
sa1100_generic.h
sa1100_h3600.c
sa1100_jornada720.c
sa1100_neponset.c
sa1100_shannon.c
sa1100_simpad.c
sa1111_generic.c
sa1111_generic.h
soc_common.c pcmcia: some class_device fallout 2007-02-16 15:19:18 -08:00
soc_common.h
socket_sysfs.c sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes 2007-07-11 16:09:09 -07:00
tcic.c
tcic.h
ti113x.h
topic.h
vg468.h
vrc4171_card.c Driver core: more fallout from class_device changes for pcmcia 2007-02-23 14:52:09 -08:00
vrc4173_cardu.c
vrc4173_cardu.h
yenta_socket.c
yenta_socket.h