]> err.no Git - linux-2.6/commit
Add suspend-related notifications for CPU hotplug
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 9 May 2007 09:35:10 +0000 (02:35 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:56 +0000 (12:30 -0700)
commit8bb7844286fb8c9fce6f65d8288aeb09d03a5e0d
treef4e305edaedbde05774bb1e4acd89a9475661d2e
parentf37bc2712b54ec641e0c0c8634f1a4b61d9956c0
Add suspend-related notifications for CPU hotplug

Since nonboot CPUs are now disabled after tasks and devices have been
frozen and the CPU hotplug infrastructure is used for this purpose, we need
special CPU hotplug notifications that will help the CPU-hotplug-aware
subsystems distinguish normal CPU hotplug events from CPU hotplug events
related to a system-wide suspend or resume operation in progress.  This
patch introduces such notifications and causes them to be used during
suspend and resume transitions.  It also changes all of the
CPU-hotplug-aware subsystems to take these notifications into consideration
(for now they are handled in the same way as the corresponding "normal"
ones).

[oleg@tv-sign.ru: cleanups]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
47 files changed:
Documentation/cpu-hotplug.txt
arch/i386/kernel/cpu/intel_cacheinfo.c
arch/i386/kernel/cpu/mcheck/therm_throt.c
arch/i386/kernel/cpuid.c
arch/i386/kernel/microcode.c
arch/i386/kernel/msr.c
arch/ia64/kernel/err_inject.c
arch/ia64/kernel/palinfo.c
arch/ia64/kernel/salinfo.c
arch/ia64/kernel/topology.c
arch/powerpc/kernel/sysfs.c
arch/powerpc/mm/numa.c
arch/s390/appldata/appldata_base.c
arch/s390/kernel/smp.c
arch/x86_64/kernel/mce.c
arch/x86_64/kernel/mce_amd.c
arch/x86_64/kernel/vsyscall.c
block/ll_rw_blk.c
drivers/base/topology.c
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_stats.c
drivers/hwmon/coretemp.c
drivers/infiniband/hw/ehca/ehca_irq.c
drivers/kvm/kvm_main.c
fs/buffer.c
fs/xfs/xfs_mount.c
include/linux/notifier.h
kernel/cpu.c
kernel/hrtimer.c
kernel/profile.c
kernel/rcupdate.c
kernel/relay.c
kernel/sched.c
kernel/softirq.c
kernel/softlockup.c
kernel/timer.c
kernel/workqueue.c
lib/radix-tree.c
mm/page_alloc.c
mm/slab.c
mm/slub.c
mm/swap.c
mm/vmscan.c
mm/vmstat.c
net/core/dev.c
net/core/flow.c
net/iucv/iucv.c