kernel-ark/drivers/usb/gadget
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_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
at91_udc.h USB: at91_udc wakeup event updates 2007-02-07 15:44:37 -08:00
config.c USB: <linux/usb_ch9.h> becomes <linux/usb/ch9.h> 2007-02-07 15:44:32 -08:00
dummy_hcd.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
epautoconf.c USB: usb gadgets avoid le{16,32}_to_cpup() 2007-06-08 16:24:30 -07:00
ether.c usb gadget: Rename husb2dev -> usba 2007-07-12 16:34:38 -07:00
file_storage.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
fsl_usb2_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
fsl_usb2_udc.h USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register 2007-07-12 16:34:30 -07:00
gadget_chips.h usb gadget: Rename husb2dev -> usba 2007-07-12 16:34:38 -07:00
gmidi.c usb gadget stack: remove usb_ep_*_buffer(), part 1 2007-07-12 16:34:42 -07:00
goku_udc.c USB: goku_udc trivial cleanups 2007-07-12 16:34:43 -07:00
goku_udc.h USB: goku_udc trivial cleanups 2007-07-12 16:34:43 -07:00
inode.c usb gadget stack: remove usb_ep_*_buffer(), part 1 2007-07-12 16:34:42 -07:00
Kconfig USB: usb gadget stack can now -DDEBUG with Kconfig 2007-07-12 16:34:42 -07:00
lh7a40x_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
lh7a40x_udc.h USB: <linux/usb_ch9.h> becomes <linux/usb/ch9.h> 2007-02-07 15:44:32 -08:00
m66592-udc.c minimal fixes for drivers/usb/gadget/m66592-udc.c 2007-07-15 16:40:51 -07:00
m66592-udc.h USB: m66592-udc: peripheral controller driver for M66592 2007-07-12 16:29:45 -07:00
Makefile USB: usb gadget stack can now -DDEBUG with Kconfig 2007-07-12 16:34:42 -07:00
ndis.h
net2280.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
net2280.h
omap_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
omap_udc.h USB: omap_udc build fixes (sync with linux-omap) 2007-01-05 12:19:09 -08:00
pxa2xx_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
pxa2xx_udc.h USB: pxa2xx_udc -- cleanups, mostly removing dma hooks 2007-07-12 16:34:42 -07:00
rndis.c USB: usb gadget stack can now -DDEBUG with Kconfig 2007-07-12 16:34:42 -07:00
rndis.h USB gadget rndis: fix struct rndis_packet_msg_type unaligned bug 2007-04-27 13:28:40 -07:00
s3c2410_udc.c usb gadget stack: remove usb_ep_*_buffer(), part 2 2007-07-12 16:34:42 -07:00
s3c2410_udc.h USB Gadget driver for Samsung s3c2410 ARM SoC 2007-07-12 16:34:30 -07:00
serial.c USB: usb serial gadget, sparse fixes 2007-07-12 16:29:51 -07:00
usbstring.c USB: <linux/usb_ch9.h> becomes <linux/usb/ch9.h> 2007-02-07 15:44:32 -08:00
zero.c usb gadget stack: remove usb_ep_*_buffer(), part 1 2007-07-12 16:34:42 -07:00