From 8a03703c5e759d29cde005f80f34acb071fab893 Mon Sep 17 00:00:00 2001 From: Marco Ballesio Date: Wed, 12 Aug 2020 07:25:00 -0700 Subject: [PATCH] ANDROID: sched: add "frozen" field to task_struct use one of the ANDROID_KABI_RESERVED fields for the v2 freezer "frozen" bit. Bug: 163547360 Test: built and booted Signed-off-by: Marco Ballesio Change-Id: I7d7aed173a09580b8eff1ccf39ca4f162fbaddc8 --- include/linux/sched.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 1dc5077da58e..98c914bd6b83 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1292,8 +1292,9 @@ struct task_struct { /* Used by LSM modules for access restriction: */ void *security; #endif + /* task is frozen/stopped (used by the cgroup freezer) */ + ANDROID_KABI_USE(1, unsigned frozen:1); - ANDROID_KABI_RESERVE(1); ANDROID_KABI_RESERVE(2); ANDROID_KABI_RESERVE(3); ANDROID_KABI_RESERVE(4);