diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2026-02-03 12:04:13 +0100 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-02-03 12:04:13 +0100 |
| commit | 3e4067169c573fba9dd8f77480f3a6e9c723b507 (patch) | |
| tree | bb332f90943149696e655f6745c5e4c934b8a9fb /include/linux/sched.h | |
| parent | 5c4378b7b0e1f45cf38e77db9305ee2c7bf88002 (diff) | |
| parent | 18f7fcd5e69a04df57b563360b88be72471d6b62 (diff) | |
| download | linux-next-3e4067169c573fba9dd8f77480f3a6e9c723b507.tar.gz linux-next-3e4067169c573fba9dd8f77480f3a6e9c723b507.zip | |
Merge branch 'v6.19-rc8'
Update to avoid conflicts with /urgent patches.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 71654e33bdbe..d834d0190c46 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1770,6 +1770,11 @@ static __always_inline bool is_percpu_thread(void) (current->nr_cpus_allowed == 1); } +static __always_inline bool is_user_task(struct task_struct *task) +{ + return task->mm && !(task->flags & (PF_KTHREAD | PF_USER_WORKER)); +} + /* Per-process atomic flags. */ #define PFA_NO_NEW_PRIVS 0 /* May not gain new privileges. */ #define PFA_SPREAD_PAGE 1 /* Spread page cache over cpuset */ @@ -1868,7 +1873,6 @@ static inline int task_nice(const struct task_struct *p) extern int can_nice(const struct task_struct *p, const int nice); extern int task_curr(const struct task_struct *p); extern int idle_cpu(int cpu); -extern int available_idle_cpu(int cpu); extern int sched_setscheduler(struct task_struct *, int, const struct sched_param *); extern int sched_setscheduler_nocheck(struct task_struct *, int, const struct sched_param *); extern void sched_set_fifo(struct task_struct *p); |
