WSL2-Linux-Kernel/arch/m68knommu/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 Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
MC68EZ328.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
MC68VZ328.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
MC68328.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
MC68332.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
anchor.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
atomic.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
auxvec.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
bitops.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
bootinfo.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
bootstd.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
bug.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
bugs.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
byteorder.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
cache.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
cachectl.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
cacheflush.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
checksum.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
coldfire.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
commproc.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
cputime.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
current.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
dbg.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
delay.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
device.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
div64.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
dma-mapping.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
dma.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
elf.h [PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITY 2008-10-16 15:40:05 +02:00
elia.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
emergency-restart.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
entry.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
errno.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
fb.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
fcntl.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
flat.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
fpu.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
futex.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
hardirq.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
hw_irq.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
hwtest.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
io.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
ioctl.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
ioctls.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
ipcbuf.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
irq.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
irq_regs.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
kdebug.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
kmap_types.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
linkage.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
local.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m520xsim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m523xsim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m527xsim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m528xsim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m532xsim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m5206sim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m5249sim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m5272sim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m5307sim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m5407sim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m68360.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m68360_enet.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m68360_pram.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m68360_quicc.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
m68360_regs.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
machdep.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
math-emu.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mc146818rtc.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfcache.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfdma.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfmbus.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfne.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfpci.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfpit.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfsim.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfsmc.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcftimer.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfuart.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mcfwdebug.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
md.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mman.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mmu.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mmu_context.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
module.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
movs.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
msgbuf.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
mutex.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
nettel.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
openprom.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
oplib.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
page.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
page_offset.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
param.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
pci.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
percpu.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
pgalloc.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
pgtable.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
poll.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
posix_types.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
processor.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
ptrace.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
quicc_simple.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
resource.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
rtc.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
scatterlist.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
sections.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
segment.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
sembuf.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
setup.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
shm.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
shmbuf.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
shmparam.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
sigcontext.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
siginfo.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
signal.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
smp.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
socket.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
sockios.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
spinlock.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
stat.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
statfs.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
string.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
system.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
termbits.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
termios.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
thread_info.h container freezer: add TIF_FREEZE flag to all architectures 2008-10-20 08:52:33 -07:00
timex.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
tlb.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
tlbflush.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
topology.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
traps.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
types.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
uaccess.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
ucontext.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
unaligned.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00
unistd.h m68k{,nommu}: Wire up new system calls 2008-08-11 10:37:34 -07:00
user.h Move all of include/asm-m68knommu to arch/m68knommu/include/asm. 2008-08-07 15:36:16 +10:00