Documentation: PM: Adjust freezing-of-tasks.rst to the freezer changes
authorKevin Hao <haokexin@gmail.com>
Tue, 12 Dec 2023 14:00:43 +0000 (22:00 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 Dec 2023 20:14:32 +0000 (21:14 +0100)
commit4bbf0b6a64455c95586caf130e374586caef9986
treefed94afd15ae4529c32e35436054ab21635f1484
parent489c693bd04a2308865dc50f37bd0b5f6ad52deb
Documentation: PM: Adjust freezing-of-tasks.rst to the freezer changes

The core freezer logic has been modified by commit f5d39b020809
("freezer,sched: Rewrite core freezer logic"), so adjust the
documentation to reflect the new code. The main changes include:

 - Drop references to PF_FROZEN and PF_FREEZER_SKIP
 - Describe TASK_FROZEN, TASK_FREEZABLE and __TASK_FREEZABLE_UNSAFE
 - Replace system_freezing_cnt with freezer_active
 - Use a different example for the loop of a freezable kernel thread,
   since the old code is gone gone

Signed-off-by: Kevin Hao <haokexin@gmail.com>
[ rjw: Subject and changelog edits, doc text adjustments ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/power/freezing-of-tasks.rst