core-util: Clamp RLIMIT_RTTIME to what RealtimeKit accepts
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Sun, 9 Jun 2013 16:47:05 +0000 (18:47 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Mon, 10 Jun 2013 13:52:44 +0000 (16:52 +0300)
commit07290d9da7a50ab9b3c6b3a7acaac6353d09801b
tree056d83f3ad569a393129935e4d0d03fdf37897e3
parentbaee32f2eec78acefb027e9553b33e85ffb571dc
core-util: Clamp RLIMIT_RTTIME to what RealtimeKit accepts

In the default configuration, PulseAudio's rlimit-rttime is set to
1000000 (100%), which is higher than what RealtimeKit requires from
its clients (200000, 20%).

Make an attempt to still get realtime scheduling by clamping the
current RLIMIT_RTTIME to what RealtimeKit accepts. Warn about doing
this.
src/pulsecore/core-util.c