linux/kernel/sched/stop_task.c

// SPDX-License-Identifier: GPL-2.0
/*
 * stop-task scheduling class.
 *
 * The stop task is the highest priority task in the system, it preempts
 * everything and will be preempted by nothing.
 *
 * See kernel/stop_machine.c
 */

#ifdef CONFIG_SMP
static int
select_task_rq_stop(struct task_struct *p, int cpu, int flags)
{}

static int
balance_stop(struct rq *rq, struct task_struct *prev, struct rq_flags *rf)
{}
#endif /* CONFIG_SMP */

static void
wakeup_preempt_stop(struct rq *rq, struct task_struct *p, int flags)
{}

static void set_next_task_stop(struct rq *rq, struct task_struct *stop, bool first)
{}

static struct task_struct *pick_task_stop(struct rq *rq)
{}

static void
enqueue_task_stop(struct rq *rq, struct task_struct *p, int flags)
{}

static bool
dequeue_task_stop(struct rq *rq, struct task_struct *p, int flags)
{}

static void yield_task_stop(struct rq *rq)
{}

static void put_prev_task_stop(struct rq *rq, struct task_struct *prev, struct task_struct *next)
{}

/*
 * scheduler tick hitting a task of our scheduling class.
 *
 * NOTE: This function can be called remotely by the tick offload that
 * goes along full dynticks. Therefore no local assumption can be made
 * and everything must be accessed through the @rq and @curr passed in
 * parameters.
 */
static void task_tick_stop(struct rq *rq, struct task_struct *curr, int queued)
{}

static void switched_to_stop(struct rq *rq, struct task_struct *p)
{}

static void
prio_changed_stop(struct rq *rq, struct task_struct *p, int oldprio)
{}

static void update_curr_stop(struct rq *rq)
{}

/*
 * Simple, special scheduling class for the per-CPU stop tasks:
 */
DEFINE_SCHED_CLASS(stop) =;