]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add SCHED_EXT from Linux 6.12 to bits/sched.h
authorJoseph Myers <josmyers@redhat.com>
Thu, 19 Dec 2024 17:08:38 +0000 (17:08 +0000)
committerJoseph Myers <josmyers@redhat.com>
Thu, 19 Dec 2024 17:08:38 +0000 (17:08 +0000)
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.

sysdeps/unix/sysv/linux/bits/sched.h
sysdeps/unix/sysv/linux/tst-sched-consts.py

index f03f5f5ab3aa2404c862832b1fd758ad7c4051cf..c8f5f031448be8fd597897fdaeb00be07ab75913 100644 (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
index f06ac400bddc7339e14accb1f31c7edcd168495c..6a5b837334ab45f8210b0b38967f5238a40584b1 100644 (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',