tracker r3076 - in trunk: . src/trackerd



Author: pvanhoof
Date: Fri Mar 13 12:37:48 2009
New Revision: 3076
URL: http://svn.gnome.org/viewvc/tracker?rev=3076&view=rev

Log:
2009-03-13  Philip Van Hoof  <philip codeminded be>

        * src/trackerd/tracker-main.c: Don't use SCHED_IDLE for the daemon


Modified:
   trunk/ChangeLog
   trunk/src/trackerd/tracker-main.c

Modified: trunk/src/trackerd/tracker-main.c
==============================================================================
--- trunk/src/trackerd/tracker-main.c	(original)
+++ trunk/src/trackerd/tracker-main.c	Fri Mar 13 12:37:48 2009
@@ -512,8 +512,6 @@
 static void
 initialize_priority (void)
 {
-	struct sched_param sp;
-
 	/* Set disk IO priority and scheduling */
 	tracker_ioprio_init ();
 
@@ -532,28 +530,6 @@
 		g_message ("Couldn't set nice value to 19, %s",
 			   str ? str : "no error given");
 	}
-
-	/* Set process scheduling parameters:
-	 * This is used so we don't steal scheduling priority from
-	 * the most important applications - like the phone
-	 * application which has a real time requirement here. This
-	 * is detailed in Nokia bug #95573 
-	 */
-	g_message ("Setting scheduling priority");
-
-	if (sched_getparam (0, &sp) == 0) {
-		if (sched_setscheduler (0, SCHED_IDLE, &sp) != 0) {
-			const gchar *str = g_strerror (errno);
-			
-			g_message ("Couldn't set scheduler priority, %s",
-				   str ? str : "no error given");
-		}
-	} else {
-		const gchar *str = g_strerror (errno);
-
-		g_message ("Couldn't get scheduler priority, %s",
-			   str ? str : "no error given");
-	}
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]