kernel-ark/arch/sparc/include/asm
Matt Helsley 83224b0837 container freezer: add TIF_FREEZE flag to all architectures
This patch series introduces a cgroup subsystem that utilizes the swsusp
freezer to freeze a group of tasks.  It's immediately useful for batch job
management scripts.  It should also be useful in the future for
implementing container checkpoint/restart.

The freezer subsystem in the container filesystem defines a cgroup file
named freezer.state.  Reading freezer.state will return the current state
of the cgroup.  Writing "FROZEN" to the state file will freeze all tasks
in the cgroup.  Subsequently writing "RUNNING" will unfreeze the tasks in
the cgroup.

* Examples of usage :

   # mkdir /containers/freezer
   # mount -t cgroup -ofreezer freezer  /containers
   # mkdir /containers/0
   # echo $some_pid > /containers/0/tasks

to get status of the freezer subsystem :

   # cat /containers/0/freezer.state
   RUNNING

to freeze all tasks in the container :

   # echo FROZEN > /containers/0/freezer.state
   # cat /containers/0/freezer.state
   FREEZING
   # cat /containers/0/freezer.state
   FROZEN

to unfreeze all tasks in the container :

   # echo RUNNING > /containers/0/freezer.state
   # cat /containers/0/freezer.state
   RUNNING

This patch:

The first step in making the refrigerator() available to all
architectures, even for those without power management.

The purpose of such a change is to be able to use the refrigerator() in a
new control group subsystem which will implement a control group freezer.

[akpm@linux-foundation.org: fix sparc]
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Acked-by: Pavel Machek <pavel@suse.cz>
Acked-by: Serge E. Hallyn <serue@us.ibm.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Nigel Cunningham <nigel@tuxonice.net>
Tested-by: Matt Helsley <matthltc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-20 08:52:33 -07:00
..
agp.h
apb.h
apc.h
asi.h
asmmacro.h sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
atomic_32.h
atomic_64.h
atomic.h
auxio_32.h
auxio_64.h
auxio.h
auxvec.h
backoff.h
bbc.h
bitext.h
bitops_32.h
bitops_64.h
bitops.h
btfixup.h
bug.h
bugs.h sparc64: Implement SSTATE purely using notifiers and initcalls. 2008-09-02 00:49:38 -07:00
byteorder.h
cache.h
cacheflush_32.h
cacheflush_64.h
cacheflush.h
chafsr.h
checksum_32.h
checksum_64.h
checksum.h
chmctrl.h
clock.h
cmt.h
compat_signal.h
compat.h
contregs.h
cpudata_32.h
cpudata_64.h sparc64: Clean up CPU chip type probing code. 2008-08-31 21:48:12 -07:00
cpudata.h
cputime.h
current.h
cypress.h
dcr.h
dcu.h
delay_32.h
delay_64.h
delay.h
device.h
display7seg.h
div64.h
dma-mapping_32.h sparc32: Implement more generic dma_*() interfaces. 2008-08-29 02:13:14 -07:00
dma-mapping_64.h
dma-mapping.h
dma.h sparc: Kill now spurious includes of sbus.h 2008-08-29 02:15:23 -07:00
ebus_dma.h sparc: Move EBUS DMA interfaces into seperate header file. 2008-08-29 23:10:21 -07:00
ecc.h
eeprom.h
elf_32.h [PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITY 2008-10-16 15:40:05 +02:00
elf_64.h [PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITY 2008-10-16 15:40:05 +02:00
elf.h
emergency-restart.h
envctrl.h
errno.h
estate.h
fb.h
fbio.h
fcntl.h
fhc.h sparc64: Rewrite central driver. 2008-08-31 20:56:15 -07:00
fixmap.h
floppy_32.h sparc: Convert remaining sbus_ioremap() and sbus_iounmap() users. 2008-08-29 02:15:13 -07:00
floppy_64.h sparc64: Convert EBUS floppy support to pure OF driver. 2008-08-29 23:26:23 -07:00
floppy.h
fpumacro.h
ftrace.h
futex_32.h
futex_64.h sparc64: FUTEX_OP_ANDN fix 2008-07-30 15:40:50 -07:00
futex.h
gpio.h sparc: Add GPIO layer support. 2008-08-24 20:33:56 -07:00
hardirq_32.h
hardirq_64.h
hardirq.h
head_32.h
head_64.h
head.h
highmem.h
hugetlb.h
hvtramp.h
hw_irq.h
hypervisor.h
ide.h
idprom.h
intr_queue.h
io_32.h sparc: Kill sbus_ioremap() and sbus_iounmap(). 2008-08-29 02:15:13 -07:00
io_64.h sparc: Kill sbus_ioremap() and sbus_iounmap(). 2008-08-29 02:15:13 -07:00
io-unit.h sparc32: Kill iounit_map_dma_*(). 2008-08-29 02:15:23 -07:00
io.h
ioctl.h
ioctls.h
iommu_32.h sparc: Remove generic SBUS probing layer. 2008-08-29 02:15:21 -07:00
iommu_64.h sparc64: Get rid of pci_controller_info. 2008-09-10 23:07:41 -07:00
iommu.h
ipcbuf_32.h
ipcbuf_64.h
ipcbuf.h
irq_32.h
irq_64.h sparc: Remove generic SBUS probing layer. 2008-08-29 02:15:21 -07:00
irq_regs.h
irq.h
irqflags_32.h
irqflags_64.h
irqflags.h
jsflash.h
Kbuild Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-10-13 17:13:56 +01:00
kdebug_32.h
kdebug_64.h
kdebug.h
kgdb.h
kmap_types.h
kprobes.h
ldc.h
linkage.h
lmb.h
local.h
lsu.h
machines.h
mbus.h
mc146818rtc_32.h
mc146818rtc_64.h sparc64: Use generic CMOS driver. 2008-08-29 14:16:48 -07:00
mc146818rtc.h
mdesc.h
memctrl.h sparc64: Add generic interface for registering a dimm printing handler. 2008-08-24 22:08:34 -07:00
memreg.h
mman.h
mmu_32.h
mmu_64.h
mmu_context_32.h
mmu_context_64.h
mmu_context.h
mmu.h
mmzone.h
module_32.h
module_64.h
module.h
mpmbox.h
msgbuf.h
msi.h
mutex.h
mxcc.h
ns87303.h
obio.h sparc32: Move sun4d show_leds() out of asm/obio.h 2008-09-08 15:40:45 -07:00
of_device.h sparc: Add OF archdata propagation helper. 2008-08-29 02:15:20 -07:00
of_platform.h sparc: Kill ebus_bus_type. 2008-08-30 00:37:36 -07:00
openprom_32.h
openprom_64.h
openprom.h
openpromio.h
oplib_32.h sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
oplib_64.h
oplib.h
page_32.h sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
page_64.h sparc64: Define WANT_PAGE_VIRTUAL 2008-09-11 23:36:32 -07:00
page.h
param.h
parport.h sparc: Annotate of_device_id arrays with const or __initdata. 2008-08-31 01:23:17 -07:00
pbm.h
pci_32.h sparc: Kill now spurious includes of sbus.h 2008-08-29 02:15:23 -07:00
pci_64.h
pci.h
pcic.h
percpu_32.h
percpu_64.h
percpu.h
perfctr.h
pgalloc_32.h
pgalloc_64.h
pgalloc.h
pgtable_32.h sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
pgtable_64.h sparc64: Fix sparse warnings in fault.c 2008-09-12 00:10:32 -07:00
pgtable.h
pgtsrmmu.h
pgtsun4.h
pgtsun4c.h
pil.h
poll.h
posix_types_32.h
posix_types_64.h
posix_types.h
processor_32.h sparc: Add task_pt_regs(). 2008-07-27 17:33:55 -07:00
processor_64.h
processor.h
prom.h sparc64: Fix irq_of_parse_and_map() and irq_dispose_mapping(). 2008-08-25 16:44:58 -07:00
psr.h
psrcompat.h
pstate.h
ptrace_32.h sparc: Add __KERNEL__ ifdef protection to pt_regs helpers. 2008-07-31 20:32:35 -07:00
ptrace_64.h sparc64: Fix sparse warnings in global reg snapshotting. 2008-09-11 23:19:22 -07:00
ptrace.h
reg_32.h
reg_64.h
reg.h
resource.h
ross.h
rwsem-const.h
rwsem.h
sbi.h
scatterlist_32.h
scatterlist_64.h
scatterlist.h
scratchpad.h
seccomp.h
sections_32.h
sections_64.h
sections.h
sembuf.h
serial.h serial: allow 8250 to be used on sparc 2008-10-13 09:51:40 -07:00
setup.h
sfafsr.h
sfp-machine_32.h
sfp-machine_64.h
sfp-machine.h
shmbuf.h
shmparam_32.h
shmparam_64.h
shmparam.h
sigcontext_32.h
sigcontext_64.h
sigcontext.h
siginfo_32.h
siginfo_64.h
siginfo.h
signal_32.h
signal_64.h
signal.h
smp_32.h sparc32: Implement smp_call_function_single(). 2008-08-27 20:03:22 -07:00
smp_64.h
smp.h
smpprim.h
socket.h
sockios.h
sparsemem.h
spinlock_32.h sparc: remove unused includes 2008-09-09 19:43:33 -07:00
spinlock_64.h sparc: remove unused includes 2008-09-09 19:43:33 -07:00
spinlock_types.h
spinlock.h
spitfire.h
stacktrace.h
starfire.h sparc64: Delete starfire_cpu_setup(). 2008-08-31 01:40:12 -07:00
stat_32.h
stat_64.h
stat.h
statfs.h SPARC: Use <asm-generic/statfs.h> 2008-09-06 19:30:17 +01:00
string_32.h
string_64.h
string.h
sunbpp.h
swift.h
syscall.h sparc: Add asm/syscall.h 2008-07-27 17:31:48 -07:00
syscalls.h
sysen.h
system_32.h sysctl: Use header file for sysctl knob declarations on sparc. 2008-09-11 23:33:53 -07:00
system_64.h sysctl: Use header file for sysctl knob declarations on sparc. 2008-09-11 23:33:53 -07:00
system.h
termbits.h
termios.h
thread_info_32.h container freezer: add TIF_FREEZE flag to all architectures 2008-10-20 08:52:33 -07:00
thread_info_64.h container freezer: add TIF_FREEZE flag to all architectures 2008-10-20 08:52:33 -07:00
thread_info.h
timer_32.h sparc32: Delete master_l10_limit. 2008-09-19 21:18:03 -07:00
timer_64.h
timer.h
timex_32.h
timex_64.h
timex.h
tlb_32.h
tlb_64.h
tlb.h
tlbflush_32.h
tlbflush_64.h
tlbflush.h
topology_32.h
topology_64.h
topology.h
traps.h
tsb.h
tsunami.h
ttable.h
turbosparc.h
types.h
uaccess_32.h
uaccess_64.h
uaccess.h
uctx.h
unaligned.h
unistd_32.h
unistd_64.h
unistd.h
upa.h
user.h
utrap.h
vac-ops.h sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
vaddrs.h
vga.h
viking.h
vio.h
visasm.h sparc64: Fix sparse warnings in visemul.c 2008-09-11 23:46:40 -07:00
watchdog.h
winmacro.h
xor_32.h
xor_64.h
xor.h