Turn on PF_NOFREEZE flag instead of setting task state to TASK_UNINTERRUPTIBLE.
authorMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 12 Apr 2005 14:25:15 +0000 (14:25 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 12 Apr 2005 14:25:15 +0000 (14:25 +0000)
Setting to UNINTERRUPTIBLE made system have a base load of 1.00.

kernel/ckrm/ckrm_cpu_monitor.c

index 23f48ec..3e18c97 100644 (file)
@@ -960,9 +960,11 @@ static int thread_exit = 0;
 static int ckrm_cpu_monitord(void *nothing)
 {
        daemonize("ckrm_cpu_ctrld");
+       current->flags |= PF_NOFREEZE;
+
        for (;;) {
                /*sleep for sometime before next try*/
-               set_current_state(TASK_UNINTERRUPTIBLE);
+               set_current_state(TASK_INTERRUPTIBLE);
                schedule_timeout(CPU_MONITOR_INTERVAL);
                ckrm_cpu_monitor(1);
                if (thread_exit) {