sched.h (7e24a55b2122746c2eef192296fc84624354f895) sched.h (b2f7d7507982ed56d301ba0f75f040fd1e930214)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Scheduler internal types and methods:
4 */
5#ifndef _KERNEL_SCHED_SCHED_H
6#define _KERNEL_SCHED_SCHED_H
7
8#include <linux/sched/affinity.h>

--- 2228 unchanged lines hidden (view full) ---

2237 int uclamp_enabled;
2238#endif
2239
2240 void (*enqueue_task) (struct rq *rq, struct task_struct *p, int flags);
2241 void (*dequeue_task) (struct rq *rq, struct task_struct *p, int flags);
2242 void (*yield_task) (struct rq *rq);
2243 bool (*yield_to_task)(struct rq *rq, struct task_struct *p);
2244
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Scheduler internal types and methods:
4 */
5#ifndef _KERNEL_SCHED_SCHED_H
6#define _KERNEL_SCHED_SCHED_H
7
8#include <linux/sched/affinity.h>

--- 2228 unchanged lines hidden (view full) ---

2237 int uclamp_enabled;
2238#endif
2239
2240 void (*enqueue_task) (struct rq *rq, struct task_struct *p, int flags);
2241 void (*dequeue_task) (struct rq *rq, struct task_struct *p, int flags);
2242 void (*yield_task) (struct rq *rq);
2243 bool (*yield_to_task)(struct rq *rq, struct task_struct *p);
2244
2245 void (*check_preempt_curr)(struct rq *rq, struct task_struct *p, int flags);
2245 void (*wakeup_preempt)(struct rq *rq, struct task_struct *p, int flags);
2246
2247 struct task_struct *(*pick_next_task)(struct rq *rq);
2248
2249 void (*put_prev_task)(struct rq *rq, struct task_struct *p);
2250 void (*set_next_task)(struct rq *rq, struct task_struct *p, bool first);
2251
2252#ifdef CONFIG_SMP
2253 int (*balance)(struct rq *rq, struct task_struct *prev, struct rq_flags *rf);

--- 257 unchanged lines hidden (view full) ---

2511
2512 /* Check if we still need preemption */
2513 sched_update_tick_dependency(rq);
2514}
2515
2516extern void activate_task(struct rq *rq, struct task_struct *p, int flags);
2517extern void deactivate_task(struct rq *rq, struct task_struct *p, int flags);
2518
2246
2247 struct task_struct *(*pick_next_task)(struct rq *rq);
2248
2249 void (*put_prev_task)(struct rq *rq, struct task_struct *p);
2250 void (*set_next_task)(struct rq *rq, struct task_struct *p, bool first);
2251
2252#ifdef CONFIG_SMP
2253 int (*balance)(struct rq *rq, struct task_struct *prev, struct rq_flags *rf);

--- 257 unchanged lines hidden (view full) ---

2511
2512 /* Check if we still need preemption */
2513 sched_update_tick_dependency(rq);
2514}
2515
2516extern void activate_task(struct rq *rq, struct task_struct *p, int flags);
2517extern void deactivate_task(struct rq *rq, struct task_struct *p, int flags);
2518
2519extern void check_preempt_curr(struct rq *rq, struct task_struct *p, int flags);
2519extern void wakeup_preempt(struct rq *rq, struct task_struct *p, int flags);
2520
2521#ifdef CONFIG_PREEMPT_RT
2522#define SCHED_NR_MIGRATE_BREAK 8
2523#else
2524#define SCHED_NR_MIGRATE_BREAK 32
2525#endif
2526
2527extern const_debug unsigned int sysctl_sched_nr_migrate;

--- 1013 unchanged lines hidden ---
2520
2521#ifdef CONFIG_PREEMPT_RT
2522#define SCHED_NR_MIGRATE_BREAK 8
2523#else
2524#define SCHED_NR_MIGRATE_BREAK 32
2525#endif
2526
2527extern const_debug unsigned int sysctl_sched_nr_migrate;

--- 1013 unchanged lines hidden ---