linux/kernel/sched/core_sched.c

// SPDX-License-Identifier: GPL-2.0-only

/*
 * A simple wrapper around refcount. An allocated sched_core_cookie's
 * address is used to compute the cookie of the task.
 */
struct sched_core_cookie {};

static unsigned long sched_core_alloc_cookie(void)
{}

static void sched_core_put_cookie(unsigned long cookie)
{}

static unsigned long sched_core_get_cookie(unsigned long cookie)
{}

/*
 * sched_core_update_cookie - replace the cookie on a task
 * @p: the task to update
 * @cookie: the new cookie
 *
 * Effectively exchange the task cookie; caller is responsible for lifetimes on
 * both ends.
 *
 * Returns: the old cookie
 */
static unsigned long sched_core_update_cookie(struct task_struct *p,
					      unsigned long cookie)
{}

static unsigned long sched_core_clone_cookie(struct task_struct *p)
{}

void sched_core_fork(struct task_struct *p)
{}

void sched_core_free(struct task_struct *p)
{}

static void __sched_core_set(struct task_struct *p, unsigned long cookie)
{}

/* Called from prctl interface: PR_SCHED_CORE */
int sched_core_share_pid(unsigned int cmd, pid_t pid, enum pid_type type,
			 unsigned long uaddr)
{}

#ifdef CONFIG_SCHEDSTATS

/* REQUIRES: rq->core's clock recently updated. */
void __sched_core_account_forceidle(struct rq *rq)
{}

void __sched_core_tick(struct rq *rq)
{}

#endif /* CONFIG_SCHEDSTATS */