aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--hurd/hurd/resource.h4
2 files changed, 5 insertions, 2 deletions
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)