Cleanup code and remove some dead code paths.
authorAnselm Busse <anselm.busse@tu-berlin.de>
Sat, 23 Jan 2016 20:14:49 +0000 (21:14 +0100)
committerAnselm Busse <anselm.busse@tu-berlin.de>
Sat, 23 Jan 2016 20:37:31 +0000 (21:37 +0100)
framework/modules/load_balance.c
framework/os/linux/linux_sched.c

index cea6ac3..9c994e5 100644 (file)
@@ -75,7 +75,7 @@ static void lb_pipe_update(fw_module_inst *self, fw_pipe_t *pipe)
                fw_request(FW_AFFINITY,&affinity_req);
                next_cpu = fw_cpumask_next_and(-1,&affinity_req.mask,&pd->pe_online);
                if(next_cpu >= pd->size){
-                       fw_printf("task %s left in queue because %ld not satisfiable\n", OS_TASK_NAME(pos), affinity_req.mask.bits[0]);
+                       //fw_printf("task %s left in queue because %ld not satisfiable\n", OS_TASK_NAME(pos), affinity_req.mask.bits[0]);
                        continue;
                }
 
index d63ab8b..896c812 100644 (file)
@@ -1,18 +1,5 @@
-/*
- * linux_sched.c
- *
- *  Created on: 11.12.2013
- *      Author: jkrieg
- */
-
 #include <fw.h>
 
-
-
-///
-// Variables
-//
-
 unsigned int smp_started;
 
 /*
@@ -96,19 +83,6 @@ __read_mostly int scheduler_running;
 DEFINE_MUTEX(sched_domains_mutex);
 DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);
 
-
-
-
-
-
-/*
- * Functions
- */
-
-/*
- * Lock/unlock task from runqueue
- */
-
 /*
  * __task_rq_lock - lock the rq @p resides on.
  */
@@ -1781,12 +1755,6 @@ __wait_for_common(struct completion *x,
        return timeout;
 }
 
-static long __sched
-wait_for_common(struct completion *x, long timeout, int state)
-{
-       return __wait_for_common(x, schedule_timeout, timeout, state);
-}
-
 /**
  * kernel/sched/core.c:2995
  * schedule_preempt_disabled - called with preemption disabled
@@ -1990,15 +1958,6 @@ int sched_rt_handler(struct ctl_table *table, int write,
        return 0;
 }
 
-/**
- * kernel/sched/core.c:3307
- */
-static long __sched
-wait_for_common_io(struct completion *x, long timeout, int state)
-{
-       return __wait_for_common(x, io_schedule_timeout, timeout, state);
-}
-
 /*
  * kernel/sched/core.c:4634
  */