1 //===-- Definition of macros from sched.h ---------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H
10 #define LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H
12 // Definitions of SCHED_* macros must match was linux as at:
13 // https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/sched.h
22 #define SCHED_ISO 4 // Not yet implemented, reserved.
24 #define SCHED_DEADLINE 6
26 #define CPU_COUNT_S(setsize, set) __sched_getcpucount(setsize, set)
27 #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set)
29 #endif // LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H