xia li 2013-07-24 02:54:42 +00:00 committed by Git OBS Bridge
parent de2e509de9
commit 8dd545ceaa

View File

@ -1,14 +0,0 @@
Index: corosync-1.4.4/exec/main.c
===================================================================
--- corosync-1.4.4.orig/exec/main.c
+++ corosync-1.4.4/exec/main.c
@@ -1268,7 +1268,8 @@ static void corosync_setscheduler (void)
#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
int res;
- sched_priority = sched_get_priority_max (SCHED_RR);
+ /*use the minimal priority same as pacemaker */
+ sched_priority = sched_get_priority_min (SCHED_RR);
if (sched_priority != -1) {
global_sched_param.sched_priority = sched_priority;
res = sched_setscheduler (0, SCHED_RR, &global_sched_param);