diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) |
