tmp_suning_uos_patched/drivers/media/video
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
..
bt8xx V4L/DVB (5808): Bttv: fix v4l1 breaking the driver 2007-07-03 15:11:14 -03:00
cpia2
cx88 Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
cx25840
em28xx
et61x251
ivtv V4L/DVB (5751): Ivtv: fix ia64 printk format warnings. 2007-06-08 08:54:41 -03:00
ovcamchip
pvrusb2
pwc
saa7134 saa7134: fix thread shutdown handling 2007-06-28 11:34:54 -07:00
sn9c102
usbvideo
usbvision
zc0301
adv7170.c
adv7175.c
arv.c
bt819.c
bt856.c
bt866.c
btcx-risc.c
btcx-risc.h
bw-qcam.c
bw-qcam.h
c-qcam.c
cafe_ccic-regs.h
cafe_ccic.c
compat_ioctl32.c
cpia_pp.c
cpia_usb.c
cpia.c
cpia.h
cs53l32a.c
cs8420.h
cx2341x.c
dabfirmware.h
dabusb.c
dabusb.h
dpc7146.c
font.h
hexium_gemini.c
hexium_orion.c
ibmmpeg2.h
indycam.c
indycam.h
ir-kbd-i2c.c
Kconfig Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
ks0127.c
ks0127.h
Makefile
meye.c PCI: Change all drivers to use pci_device->revision 2007-07-11 16:02:10 -07:00
meye.h
msp3400-driver.c
msp3400-driver.h
msp3400-kthreads.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
mt20xx.c
mxb.c
mxb.h
ov511.c
ov511.h
ov7670.c
planb.c
planb.h
pms.c
saa711x_regs.h
saa711x.c
saa5246a.c
saa5246a.h
saa5249.c
saa6588.c
saa7110.c
saa7111.c
saa7114.c
saa7115.c
saa7121.h
saa7127.c
saa7146.h
saa7146reg.h
saa7185.c
saa7191.c
saa7191.h
saa7196.h
se401.c
se401.h
stradis.c
stv680.c
stv680.h
tda7432.c
tda8290.c
tda9840.c
tda9840.h
tda9875.c
tda9887.c
tea5767.c
tea6415c.c
tea6415c.h
tea6420.c
tea6420.h
tlv320aic23b.c
tuner-3036.c
tuner-core.c
tuner-simple.c
tuner-types.c
tvaudio.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
tveeprom.c
tvmixer.c
tvp5150_reg.h
tvp5150.c
upd64031a.c
upd64083.c
v4l1-compat.c
v4l2-common.c
video-buf-dvb.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
video-buf.c
videocodec.c
videocodec.h
videodev.c
vino.c
vino.h
vivi.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
vpx3220.c
w9966.c
w9968cf_decoder.h
w9968cf_vpp.h
w9968cf.c
w9968cf.h
wm8739.c
wm8775.c
zoran_card.c
zoran_card.h
zoran_device.c
zoran_device.h
zoran_driver.c
zoran_procfs.c
zoran_procfs.h
zoran.h
zr364xx.c
zr36016.c
zr36016.h
zr36050.c
zr36050.h
zr36057.h
zr36060.c
zr36060.h