X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=kernel%2Fckrm%2Fckrm_cpu_monitor.c;h=23f48ec02b3706ad9087bd2332d8859f63ecfb45;hb=1d2444bb25f0b4efa6e2f7e397aba0c6fd7262d8;hp=5f59b375e7e42bd785d5ba047ce6b4ba111d061a;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/kernel/ckrm/ckrm_cpu_monitor.c b/kernel/ckrm/ckrm_cpu_monitor.c index 5f59b375e..23f48ec02 100644 --- a/kernel/ckrm/ckrm_cpu_monitor.c +++ b/kernel/ckrm/ckrm_cpu_monitor.c @@ -841,9 +841,8 @@ static void adjust_lrq_weight(struct ckrm_cpu_class *clsptr, int cpu_online) total_pressure += lrq->lrq_load; } -#define FIX_SHARES -#ifdef FIX_SHARES -#warning "ACB: fix share initialization problem [PL #4227]" +#if 1 +#warning "ACB taking out suspicious early return" #else if (! total_pressure) return; @@ -860,10 +859,6 @@ static void adjust_lrq_weight(struct ckrm_cpu_class *clsptr, int cpu_online) /*give idle class a high share to boost interactiveness */ lw = cpu_class_weight(clsptr); else { -#ifdef FIX_SHARES - if (! total_pressure) - return; -#endif lw = lrq->lrq_load * class_weight; do_div(lw,total_pressure); if (!lw) @@ -965,11 +960,9 @@ 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_INTERRUPTIBLE); + set_current_state(TASK_UNINTERRUPTIBLE); schedule_timeout(CPU_MONITOR_INTERVAL); ckrm_cpu_monitor(1); if (thread_exit) {