mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Add in the scx_userland scheduler that does vruntime-based scheduling in userspace code and communicates scheduling decisions to BPF by accessing and modifying globals through the skeleton. Cc: Tejun Heo <tj@kernel.org> Cc: David Vernet <dvernet@meta.com> Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Signed-off-by: Tejun Heo <tj@kernel.org>
18 lines
389 B
C
18 lines
389 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright (c) 2022 Meta, Inc */
|
|
|
|
#ifndef __SCX_USERLAND_COMMON_H
|
|
#define __SCX_USERLAND_COMMON_H
|
|
|
|
/*
|
|
* An instance of a task that has been enqueued by the kernel for consumption
|
|
* by a user space global scheduler thread.
|
|
*/
|
|
struct scx_userland_enqueued_task {
|
|
__s32 pid;
|
|
u64 sum_exec_runtime;
|
|
u64 weight;
|
|
};
|
|
|
|
#endif // __SCX_USERLAND_COMMON_H
|