aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index f4c413bdd38d..5757e03cfac0 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3190,7 +3190,7 @@ static int move_one_task(struct rq *this_rq, int this_cpu, struct rq *busiest,
3190 return 0; 3190 return 0;
3191} 3191}
3192/********** Helpers for find_busiest_group ************************/ 3192/********** Helpers for find_busiest_group ************************/
3193/** 3193/*
3194 * sd_lb_stats - Structure to store the statistics of a sched_domain 3194 * sd_lb_stats - Structure to store the statistics of a sched_domain
3195 * during load balancing. 3195 * during load balancing.
3196 */ 3196 */
@@ -3222,7 +3222,7 @@ struct sd_lb_stats {
3222#endif 3222#endif
3223}; 3223};
3224 3224
3225/** 3225/*
3226 * sg_lb_stats - stats of a sched_group required for load_balancing 3226 * sg_lb_stats - stats of a sched_group required for load_balancing
3227 */ 3227 */
3228struct sg_lb_stats { 3228struct sg_lb_stats {
@@ -3360,16 +3360,17 @@ static inline void update_sd_power_savings_stats(struct sched_group *group,
3360} 3360}
3361 3361
3362/** 3362/**
3363 * check_power_save_busiest_group - Check if we have potential to perform 3363 * check_power_save_busiest_group - see if there is potential for some power-savings balance
3364 * some power-savings balance. If yes, set the busiest group to be
3365 * the least loaded group in the sched_domain, so that it's CPUs can
3366 * be put to idle.
3367 *
3368 * @sds: Variable containing the statistics of the sched_domain 3364 * @sds: Variable containing the statistics of the sched_domain
3369 * under consideration. 3365 * under consideration.
3370 * @this_cpu: Cpu at which we're currently performing load-balancing. 3366 * @this_cpu: Cpu at which we're currently performing load-balancing.
3371 * @imbalance: Variable to store the imbalance. 3367 * @imbalance: Variable to store the imbalance.
3372 * 3368 *
3369 * Description:
3370 * Check if we have potential to perform some power-savings balance.
3371 * If yes, set the busiest group to be the least loaded group in the
3372 * sched_domain, so that it's CPUs can be put to idle.
3373 *
3373 * Returns 1 if there is potential to perform power-savings balance. 3374 * Returns 1 if there is potential to perform power-savings balance.
3374 * Else returns 0. 3375 * Else returns 0.
3375 */ 3376 */