From 2491c33af6da4ea2d865075c08e644ef5067f579 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 22 Feb 2013 17:49:12 -0600 Subject: [PATCH] always try realtime first and let ppl use -np themselves if its a problem --- src/switch_core.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/switch_core.c b/src/switch_core.c index a2cc8138b3..31549cfba6 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -839,10 +839,8 @@ SWITCH_DECLARE(int32_t) set_auto_priority(void) if (!runtime.cpu_count) runtime.cpu_count = 1; - /* If we have more than 1 cpu, we should use realtime priority so we can have priority threads */ - if (runtime.cpu_count > 1) { - return set_realtime_priority(); - } + return set_realtime_priority(); + return 0; }