kernel-hacking-2024-linux-s.../init
Nigel Cunningham 019ad4a0a6 Fix failure to resume from initrds
Commit 8314418629 (Freezer: make kernel
threads nonfreezable by default) breaks freezing when attempting to resume
from an initrd, because the init (which is freezeable) spins while waiting
for another thread to run /linuxrc, but doesn't check whether it has been
told to enter the refrigerator.  The original patch replaced a call to
try_to_freeze() with a call to yield().  I believe a simple reversion is
wrong because if !CONFIG_PM_SLEEP, try_to_freeze() is a noop.  It should
still yield.

Signed-off-by: Nigel Cunningham <nigel@nigel.suspend2.net>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-09-19 11:24:17 -07:00
..
calibrate.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
do_mounts.c init: wait for asynchronously scanned block devices 2007-07-16 09:05:45 -07:00
do_mounts.h
do_mounts_initrd.c Fix failure to resume from initrds 2007-09-19 11:24:17 -07:00
do_mounts_md.c
do_mounts_rd.c
initramfs.c initramfs: missing __init 2007-07-26 11:11:56 -07:00
Kconfig Kconfig: remove top level menu "Code maturity level options" 2007-07-31 15:39:43 -07:00
main.c fix maxcpus=1 oops in show_stat() 2007-08-30 21:54:31 -07:00
Makefile
noinitramfs.c
version.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00