aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorCorinna Vinschen <xda@vinschen.de>2019-04-10 20:36:23 +0200
committerMoyster <oysterized@gmail.com>2019-05-02 17:44:25 +0200
commit31ab448c24d5568678b78d68dac9af6a97535ab0 (patch)
tree75dde40be2290a5830660ceb43d0f5f06d48e93c /include/linux
parenta44eca0e99e666af7f49a511df785269fcb8821a (diff)
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 <xda@vinschen.de> Signed-off-by: Moyster <oysterized@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h5
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)