[RFC PATCH v2 1/3] sched: schedule balance map foundation

2013-01-16 Thread Michael Wang
In order to get rid of the complex code in select_task_rq_fair(), approach to directly get sd on each level with proper flag is required. Schedule balance map is the solution, which record the sd according to it's flag and level. For example, cpu_sbm->sd[wake][l] will locate the sd of cpu which

[RFC PATCH v2 1/3] sched: schedule balance map foundation

2013-01-16 Thread Michael Wang
In order to get rid of the complex code in select_task_rq_fair(), approach to directly get sd on each level with proper flag is required. Schedule balance map is the solution, which record the sd according to it's flag and level. For example, cpu_sbm-sd[wake][l] will locate the sd of cpu which