]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - Documentation/power/freezing-of-tasks.txt
PM / Freezer / Docs: Document the beauty of freeze/thaw semantics
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Sat, 4 Feb 2012 21:26:26 +0000 (22:26 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 9 Feb 2012 22:55:49 +0000 (23:55 +0100)
commit9045a05044268b075c13bb0284601b24959dc3c6
tree4fc43dc0e901f565e37219ba59ea305409fb8be7
parent8916e3702ec422b57cc549fbae3986106292100f
PM / Freezer / Docs: Document the beauty of freeze/thaw semantics

The way the different freeze/thaw functions encapsulate each other are quite
lovely from a design point of view. And as a side-effect, the way in which
they are invoked (cleaning up on failure for example) differs significantly
from how usual functions are dealt with. This is because of the underlying
semantics that govern the freezing and thawing of various tasks.

This subtle aspect that differentiates these functions from the rest, is
worth documenting.

Many thanks to Tejun Heo for providing enlightenment on this topic.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/power/freezing-of-tasks.txt