mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
module-pw: Log when RTKit limits RLIMIT_RTTIME
This commit is contained in:
parent
5d169523b3
commit
baabcbe606
1 changed files with 5 additions and 0 deletions
|
|
@ -551,6 +551,11 @@ static int set_rlimit(struct impl *impl)
|
||||||
if (impl->use_rtkit) {
|
if (impl->use_rtkit) {
|
||||||
rttime = pw_rtkit_get_rttime_usec_max(impl->system_bus);
|
rttime = pw_rtkit_get_rttime_usec_max(impl->system_bus);
|
||||||
if (rttime >= 0) {
|
if (rttime >= 0) {
|
||||||
|
if ((rlim_t)rttime < rl.rlim_cur) {
|
||||||
|
pw_log_debug("clamping rt.time.soft from %ld to %lld because of RTKit",
|
||||||
|
rl.rlim_cur, rttime);
|
||||||
|
}
|
||||||
|
|
||||||
rl.rlim_cur = SPA_MIN(rl.rlim_cur, (rlim_t)rttime);
|
rl.rlim_cur = SPA_MIN(rl.rlim_cur, (rlim_t)rttime);
|
||||||
rl.rlim_max = SPA_MIN(rl.rlim_max, (rlim_t)rttime);
|
rl.rlim_max = SPA_MIN(rl.rlim_max, (rlim_t)rttime);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue