mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ANDROID: Add an extra wake flag for android vendor use
specific wake flag for android vendor Bug: 189858948 Signed-off-by: Namkyu Kim <namkyu78.kim@samsung.com> Change-Id: Idc23c1c47f7d83b298c0b2560859f1ce2761fd85
This commit is contained in:
parent
28e408cd4c
commit
4c1097df5d
|
|
@ -5026,7 +5026,7 @@ asmlinkage __visible void __sched preempt_schedule_irq(void)
|
||||||
int default_wake_function(wait_queue_entry_t *curr, unsigned mode, int wake_flags,
|
int default_wake_function(wait_queue_entry_t *curr, unsigned mode, int wake_flags,
|
||||||
void *key)
|
void *key)
|
||||||
{
|
{
|
||||||
WARN_ON_ONCE(IS_ENABLED(CONFIG_SCHED_DEBUG) && wake_flags & ~WF_SYNC);
|
WARN_ON_ONCE(IS_ENABLED(CONFIG_SCHED_DEBUG) && wake_flags & ~(WF_SYNC | WF_ANDROID_VENDOR));
|
||||||
return try_to_wake_up(curr->private, mode, wake_flags);
|
return try_to_wake_up(curr->private, mode, wake_flags);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(default_wake_function);
|
EXPORT_SYMBOL(default_wake_function);
|
||||||
|
|
|
||||||
|
|
@ -1755,6 +1755,7 @@ static inline int task_on_rq_migrating(struct task_struct *p)
|
||||||
#define WF_FORK 0x02 /* Child wakeup after fork */
|
#define WF_FORK 0x02 /* Child wakeup after fork */
|
||||||
#define WF_MIGRATED 0x04 /* Internal use, task got migrated */
|
#define WF_MIGRATED 0x04 /* Internal use, task got migrated */
|
||||||
#define WF_ON_CPU 0x08 /* Wakee is on_cpu */
|
#define WF_ON_CPU 0x08 /* Wakee is on_cpu */
|
||||||
|
#define WF_ANDROID_VENDOR 0x1000 /* Vendor specific for Android */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To aid in avoiding the subversion of "niceness" due to uneven distribution
|
* To aid in avoiding the subversion of "niceness" due to uneven distribution
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user