aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-11-30 08:24:59 -0800
committerUlrich Drepper <drepper@redhat.com>2009-11-30 08:24:59 -0800
commit02a52de084cfbd7d664ddbd00266de790c7faa98 (patch)
treec44b0e4a16819e243bf8471dbf673b08c1d51c57
parentebb92a491fadc4e588ba090c5b27185d442ffd5d (diff)
downloadglibc-02a52de084cfbd7d664ddbd00266de790c7faa98.tar
glibc-02a52de084cfbd7d664ddbd00266de790c7faa98.tar.gz
glibc-02a52de084cfbd7d664ddbd00266de790c7faa98.tar.bz2
glibc-02a52de084cfbd7d664ddbd00266de790c7faa98.zip
Define SCHED_IDLE and SCHED_RESET_ON_FORK for Linux.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/bits/sched.h11
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b487ec264..4aa537fa9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-30 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
+ SCHED_RESET_ON_FORK.
+
2009-11-26 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h
index 18269a99b9..8ba9eed6f0 100644
--- a/sysdeps/unix/sysv/linux/bits/sched.h
+++ b/sysdeps/unix/sysv/linux/bits/sched.h
@@ -27,11 +27,14 @@
/* Scheduling algorithms. */
-#define SCHED_OTHER 0
-#define SCHED_FIFO 1
-#define SCHED_RR 2
+#define SCHED_OTHER 0
+#define SCHED_FIFO 1
+#define SCHED_RR 2
#ifdef __USE_GNU
-# define SCHED_BATCH 3
+# define SCHED_BATCH 3
+# define SCHED_IDLE 5
+
+# define SCHED_RESET_ON_FORK 0x40000000
#endif
#ifdef __USE_MISC