From dbb41ce2b7f309d394054a6bd1e33afd578798a5 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 23 Oct 2020 15:18:01 +0200 Subject: Move the source code of all xloop components to the common 'src' directory --- kernel/tests/include/lapi/sched.h | 62 --------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 kernel/tests/include/lapi/sched.h (limited to 'kernel/tests/include/lapi/sched.h') diff --git a/kernel/tests/include/lapi/sched.h b/kernel/tests/include/lapi/sched.h deleted file mode 100644 index 26fe445..0000000 --- a/kernel/tests/include/lapi/sched.h +++ /dev/null @@ -1,62 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Copyright (c) 2015 Cui Bixuan - */ - -#ifndef __SCHED_H__ -#define __SCHED_H__ - -#include "lapi/syscalls.h" -#include -#include - -struct sched_attr { - uint32_t size; - - uint32_t sched_policy; - uint64_t sched_flags; - - /* SCHED_NORMAL, SCHED_BATCH */ - int32_t sched_nice; - - /* SCHED_FIFO, SCHED_RR */ - uint32_t sched_priority; - - /* SCHED_DEADLINE (nsec) */ - uint64_t sched_runtime; - uint64_t sched_deadline; - uint64_t sched_period; -}; - -int sched_setattr(pid_t pid, - const struct sched_attr *attr, - unsigned int flags) -{ - return syscall(__NR_sched_setattr, pid, attr, flags); -} - -int sched_getattr(pid_t pid, - struct sched_attr *attr, - unsigned int size, - unsigned int flags) -{ - return syscall(__NR_sched_getattr, pid, attr, size, flags); -} - -#ifndef CLONE_VM -#define CLONE_VM 0x00000100 -#endif - -#ifndef CLONE_FS -#define CLONE_FS 0x00000200 -#endif - -#ifndef CLONE_SYSVSEM -#define CLONE_SYSVSEM 0x00040000 -#endif - -#ifndef CLONE_IO -#define CLONE_IO 0x80000000 -#endif - -#endif /* __SCHED_H__ */ -- cgit v1.2.3-55-g7522