Add SCHED_EXT from Linux 6.12 to bits/sched.h

Linux 6.12 adds the SCHED_EXT constant.  Add it to glibc's
bits/sched.h and update the kernel version in tst-sched-consts.py.

Tested for x86_64.
This commit is contained in:
Joseph Myers 2024-12-19 17:08:38 +00:00
parent 57256971b0
commit 29ae632e76
2 changed files with 2 additions and 1 deletions

View file

@ -34,6 +34,7 @@
# define SCHED_ISO 4
# define SCHED_IDLE 5
# define SCHED_DEADLINE 6
# define SCHED_EXT 7
/* Flags that can be used in policy values. */
# define SCHED_RESET_ON_FORK 0x40000000

View file

@ -33,7 +33,7 @@ def main():
help='C compiler (including options) to use')
args = parser.parse_args()
linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc)
linux_version_glibc = (6, 11)
linux_version_glibc = (6, 12)
sys.exit(glibcextract.compare_macro_consts(
'#define _GNU_SOURCE 1\n'
'#include <sched.h>\n',