From 31ab448c24d5568678b78d68dac9af6a97535ab0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 10 Apr 2019 20:36:23 +0200 Subject: clean up process flags * Move PF_WAKE_UP_IDLE to 0x00000002 to make room for PF_SUSPEND_TASK * Drop PF_SU in favor of a bit 'task_is_su' in the task_struct bitfield which has still lots of room without changing the struct size. Change-Id: I2af053ebcbb3c41b7407560008da8150a73c8c05 Signed-off-by: Corinna Vinschen Signed-off-by: Moyster --- include/linux/sched.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/linux') diff --git a/include/linux/sched.h b/include/linux/sched.h index e45c95c02..9e01d7cd1 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1247,6 +1247,9 @@ struct task_struct { unsigned sched_reset_on_fork:1; unsigned sched_contributes_to_load:1; + /* task is su (lineage-only, LVT-2017-000[1-3]) */ + unsigned task_is_su:1; + unsigned long atomic_flags; /* Flags needing atomic access. */ pid_t pid; @@ -1768,6 +1771,7 @@ extern int task_free_unregister(struct notifier_block *n); /* * Per process flags */ +#define PF_WAKE_UP_IDLE 0x00000002 /* try to wake up on an idle CPU */ #define PF_EXITING 0x00000004 /* getting shut down */ #define PF_EXITPIDONE 0x00000008 /* pi exit done on shut down */ #define PF_VCPU 0x00000010 /* I'm a virtual CPU */ @@ -1797,6 +1801,7 @@ extern int task_free_unregister(struct notifier_block *n); #define PF_MEMPOLICY 0x10000000 /* Non-default NUMA mempolicy */ #define PF_MUTEX_TESTER 0x20000000 /* Thread belongs to the rt mutex tester */ #define PF_FREEZER_SKIP 0x40000000 /* Freezer should not count it as freezable */ + #define PF_MTKPASR 0x80000000 /* I am in MTKPASR process */ #define task_in_mtkpasr(task) unlikely(task->flags & PF_MTKPASR) -- cgit v1.2.3