original_kernel/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
..
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
agp.h
apb.h
apc.h
asi.h
asmmacro.h sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
atomic.h
atomic_32.h
atomic_64.h
auxio.h
auxio_32.h
auxio_64.h
auxvec.h
backoff.h
bbc.h
bitext.h
bitops.h
bitops_32.h
bitops_64.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.h
cacheflush_32.h
cacheflush_64.h
chafsr.h
checksum.h
checksum_32.h
checksum_64.h
chmctrl.h
clock.h
cmt.h
compat.h
compat_signal.h
contregs.h
cpudata.h
cpudata_32.h
cpudata_64.h sparc64: Clean up CPU chip type probing code. 2008-08-31 21:48:12 -07:00
cputime.h
current.h
cypress.h
dcr.h
dcu.h
delay.h
delay_32.h
delay_64.h
device.h
display7seg.h
div64.h
dma-mapping.h
dma-mapping_32.h sparc32: Implement more generic dma_*() interfaces. 2008-08-29 02:13:14 -07:00
dma-mapping_64.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.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
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.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
fpumacro.h
ftrace.h
futex.h
futex_32.h
futex_64.h sparc64: FUTEX_OP_ANDN fix 2008-07-30 15:40:50 -07:00
gpio.h sparc: Add GPIO layer support. 2008-08-24 20:33:56 -07:00
hardirq.h
hardirq_32.h
hardirq_64.h
head.h
head_32.h
head_64.h
highmem.h
hugetlb.h
hvtramp.h
hw_irq.h
hypervisor.h
ide.h
idprom.h
intr_queue.h
io-unit.h sparc32: Kill iounit_map_dma_*(). 2008-08-29 02:15:23 -07:00
io.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
ioctl.h
ioctls.h
iommu.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
ipcbuf.h
ipcbuf_32.h
ipcbuf_64.h
irq.h
irq_32.h
irq_64.h sparc: Remove generic SBUS probing layer. 2008-08-29 02:15:21 -07:00
irq_regs.h
irqflags.h
irqflags_32.h
irqflags_64.h
jsflash.h
kdebug.h
kdebug_32.h
kdebug_64.h
kgdb.h
kmap_types.h
kprobes.h
ldc.h
linkage.h
lmb.h
local.h
lsu.h
machines.h
mbus.h
mc146818rtc.h
mc146818rtc_32.h
mc146818rtc_64.h sparc64: Use generic CMOS driver. 2008-08-29 14:16:48 -07:00
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.h
mmu_32.h
mmu_64.h
mmu_context.h
mmu_context_32.h
mmu_context_64.h
mmzone.h
module.h
module_32.h
module_64.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.h
openprom_32.h
openprom_64.h
openpromio.h
oplib.h
oplib_32.h sparc: remove CONFIG_SUN4 2008-08-31 20:59:37 -07:00
oplib_64.h
page.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
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.h
pci_32.h sparc: Kill now spurious includes of sbus.h 2008-08-29 02:15:23 -07:00
pci_64.h
pcic.h
percpu.h
percpu_32.h
percpu_64.h
perfctr.h
pgalloc.h
pgalloc_32.h
pgalloc_64.h
pgtable.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
pgtsrmmu.h
pgtsun4.h
pgtsun4c.h
pil.h
poll.h
posix_types.h
posix_types_32.h
posix_types_64.h
processor.h
processor_32.h sparc: Add task_pt_regs(). 2008-07-27 17:33:55 -07:00
processor_64.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.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
reg.h
reg_32.h
reg_64.h
resource.h
ross.h
rwsem-const.h
rwsem.h
sbi.h
scatterlist.h
scatterlist_32.h
scatterlist_64.h
scratchpad.h
seccomp.h
sections.h
sections_32.h
sections_64.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.h
sfp-machine_32.h
sfp-machine_64.h
shmbuf.h
shmparam.h
shmparam_32.h
shmparam_64.h
sigcontext.h
sigcontext_32.h
sigcontext_64.h
siginfo.h
siginfo_32.h
siginfo_64.h
signal.h
signal_32.h
signal_64.h
smp.h
smp_32.h sparc32: Implement smp_call_function_single(). 2008-08-27 20:03:22 -07:00
smp_64.h
smpprim.h
socket.h
sockios.h
sparsemem.h
spinlock.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
spitfire.h
stacktrace.h
starfire.h sparc64: Delete starfire_cpu_setup(). 2008-08-31 01:40:12 -07:00
stat.h
stat_32.h
stat_64.h
statfs.h SPARC: Use <asm-generic/statfs.h> 2008-09-06 19:30:17 +01:00
string.h
string_32.h
string_64.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.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
termbits.h
termios.h
thread_info.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
timer.h
timer_32.h sparc32: Delete master_l10_limit. 2008-09-19 21:18:03 -07:00
timer_64.h
timex.h
timex_32.h
timex_64.h
tlb.h
tlb_32.h
tlb_64.h
tlbflush.h
tlbflush_32.h
tlbflush_64.h
topology.h
topology_32.h
topology_64.h
traps.h
tsb.h
tsunami.h
ttable.h
turbosparc.h
types.h
uaccess.h
uaccess_32.h
uaccess_64.h
uctx.h
unaligned.h
unistd.h
unistd_32.h
unistd_64.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.h
xor_32.h
xor_64.h