sched/core: Rewrite and improve select_idle_siblings()
[linux-2.6-block.git] / include / linux / sched.h
index 98888f1a03bc8250bf02b98c7f38b50459bc77eb..2c30ed860d66a44d4a2a9c51014ad2d925dffa18 100644 (file)
@@ -1070,6 +1070,7 @@ struct sched_group;
 struct sched_domain_shared {
        atomic_t        ref;
        atomic_t        nr_busy_cpus;
+       int             has_idle_cores;
 };
 
 struct sched_domain {
@@ -1102,6 +1103,8 @@ struct sched_domain {
        u64 max_newidle_lb_cost;
        unsigned long next_decay_max_lb_cost;
 
+       u64 avg_scan_cost;              /* select_idle_sibling */
+
 #ifdef CONFIG_SCHEDSTATS
        /* load_balance() stats */
        unsigned int lb_count[CPU_MAX_IDLE_TYPES];