about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-07 22:09:09 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-02-07 22:09:09 +0100
commitbd959902bcb2e71b4f3ac72535c4d2fe86f4ce79 (patch)
tree25fb3259c3e35d99f582ec39a23db0b10ac44ed3 /hurd
parentd5131d3c1e4b71b5ce3bcd629ef019812b1412cf (diff)
downloadglibc-bd959902bcb2e71b4f3ac72535c4d2fe86f4ce79.tar.gz
glibc-bd959902bcb2e71b4f3ac72535c4d2fe86f4ce79.tar.xz
glibc-bd959902bcb2e71b4f3ac72535c4d2fe86f4ce79.zip
hurd: map nice levels 1-to-1 with Mach prio levels
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd/resource.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hurd/hurd/resource.h b/hurd/hurd/resource.h
index e43d8e8b74..e9931e528a 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)