]> git.proxmox.com Git - corosync-pve.git/blob - debian/patches/disable-sched-rr.patch
69f6bc69a92221c465c8dcfc6d82a5f840106608
[corosync-pve.git] / debian / patches / disable-sched-rr.patch
1 Index: new/exec/main.c
2 ===================================================================
3 --- new.orig/exec/main.c 2013-01-11 15:35:35.000000000 +0100
4 +++ new/exec/main.c 2013-01-11 15:36:39.000000000 +0100
5 @@ -1265,7 +1265,7 @@
6
7 static void corosync_setscheduler (void)
8 {
9 -#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
10 +#if 0 && defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX) && defined(HAVE_SCHED_SETSCHEDULER)
11 int res;
12
13 sched_priority = sched_get_priority_max (SCHED_RR);
14 @@ -1301,9 +1301,6 @@
15 "Could not get maximum scheduler priority");
16 sched_priority = 0;
17 }
18 -#else
19 - log_printf(LOGSYS_LEVEL_WARNING,
20 - "The Platform is missing process priority setting features. Leaving at default.");
21 #endif
22 }
23
24 Index: new/exec/timer.c
25 ===================================================================
26 --- new.orig/exec/timer.c 2013-01-11 15:35:40.000000000 +0100
27 +++ new/exec/timer.c 2013-01-11 15:35:46.000000000 +0100
28 @@ -109,7 +109,7 @@
29 int fds;
30 unsigned long long timeout;
31
32 -#if defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX)
33 +#if 0 && defined(HAVE_PTHREAD_SETSCHEDPARAM) && defined(HAVE_SCHED_GET_PRIORITY_MAX)
34 if (sched_priority != 0) {
35 struct sched_param sched_param;
36