This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-30-gbd95990


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  bd959902bcb2e71b4f3ac72535c4d2fe86f4ce79 (commit)
      from  d5131d3c1e4b71b5ce3bcd629ef019812b1412cf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=bd959902bcb2e71b4f3ac72535c4d2fe86f4ce79

commit bd959902bcb2e71b4f3ac72535c4d2fe86f4ce79
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sat Feb 7 22:09:09 2015 +0100

    hurd: map nice levels 1-to-1 with Mach prio levels

diff --git a/ChangeLog b/ChangeLog
index fa48858..03a987a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,9 @@
 	[__USE_MISC] (chflags, fchflags): Declare functions.
 	* hurd/hurdselect.c (_hurd_select): In the poll case, do not return
 	EINVAL when nfds is greater than FD_SETSIZE.
+	* hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
+	NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
+	45.
 
 2015-02-06  Roland McGrath  <roland@hack.frob.com>
 
diff --git a/hurd/hurd/resource.h b/hurd/hurd/resource.h
index e43d8e8..e9931e5 100644
--- a/hurd/hurd/resource.h
+++ b/hurd/hurd/resource.h
@@ -42,8 +42,8 @@ extern error_t _hurd_priority_which_map (enum __priority_which which, int who,
 
 /* Convert between Mach priority values and the priority
    values used by getpriority, setpriority, and nice.  */
-#define MACH_PRIORITY_TO_NICE(prio) (2 * ((prio) - 12))
-#define NICE_TO_MACH_PRIORITY(nice) (12 + ((nice) / 2))
+#define MACH_PRIORITY_TO_NICE(prio) ((prio) - 25)
+#define NICE_TO_MACH_PRIORITY(nice) ((nice) + 25)
 
 
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog            |    3 +++
 hurd/hurd/resource.h |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]