Peter Zijlstra 5950e5d574 freezer: Have {,un}lock_system_sleep() save/restore flags
Rafael explained that the reason for having both PF_NOFREEZE and
PF_FREEZER_SKIP is that {,un}lock_system_sleep() is callable from
kthread context that has previously called set_freezable().

In preparation of merging the flags, have {,un}lock_system_slee() save
and restore current->flags.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220822114648.725003428@infradead.org
2022-09-07 21:53:48 +02:00
..
2022-05-25 15:37:07 +02:00
2022-05-27 21:24:19 -07:00
2022-01-12 15:57:59 -08:00
2022-04-05 10:24:38 +02:00
2022-01-12 19:40:31 +01:00
2022-07-29 19:58:52 +02:00
2022-08-02 11:12:25 -07:00
2020-11-09 19:25:20 +01:00
2022-05-25 15:37:07 +02:00
2022-08-03 14:38:02 -07:00
2022-05-27 21:24:19 -07:00
2022-01-22 08:33:37 +02:00
2021-06-07 15:36:46 +02:00
2020-11-09 19:08:06 +01:00
2022-08-06 10:19:51 -07:00
2022-07-05 20:25:39 +02:00
2020-11-09 19:08:06 +01:00