aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-07-09 12:51:57 -0400
committerIngo Molnar <mingo@elte.hu>2007-07-09 12:51:57 -0400
commitd15bcfdbe1818478891d714343f037cfe60875f0 (patch)
tree62362e16a1b189161d0c163085898043e6844a5e /include
parent7dcca30a32aadb0520417521b0c44f42d09fe05c (diff)
sched: rename idle_type/SCHED_IDLE
enum idle_type (used by the load-balancer) clashes with the SCHED_IDLE name that we want to introduce. 'CPU_IDLE' instead of 'SCHED_IDLE' is more descriptive as well. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 693f0e6c54d4..2acfb23f3681 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -639,12 +639,11 @@ static inline int sched_info_on(void)
639#endif 639#endif
640} 640}
641 641
642enum idle_type 642enum cpu_idle_type {
643{ 643 CPU_IDLE,
644 SCHED_IDLE, 644 CPU_NOT_IDLE,
645 NOT_IDLE, 645 CPU_NEWLY_IDLE,
646 NEWLY_IDLE, 646 CPU_MAX_IDLE_TYPES
647 MAX_IDLE_TYPES
648}; 647};
649 648
650/* 649/*
@@ -719,14 +718,14 @@ struct sched_domain {
719 718
720#ifdef CONFIG_SCHEDSTATS 719#ifdef CONFIG_SCHEDSTATS
721 /* load_balance() stats */ 720 /* load_balance() stats */
722 unsigned long lb_cnt[MAX_IDLE_TYPES]; 721 unsigned long lb_cnt[CPU_MAX_IDLE_TYPES];
723 unsigned long lb_failed[MAX_IDLE_TYPES]; 722 unsigned long lb_failed[CPU_MAX_IDLE_TYPES];
724 unsigned long lb_balanced[MAX_IDLE_TYPES]; 723 unsigned long lb_balanced[CPU_MAX_IDLE_TYPES];
725 unsigned long lb_imbalance[MAX_IDLE_TYPES]; 724 unsigned long lb_imbalance[CPU_MAX_IDLE_TYPES];
726 unsigned long lb_gained[MAX_IDLE_TYPES]; 725 unsigned long lb_gained[CPU_MAX_IDLE_TYPES];
727 unsigned long lb_hot_gained[MAX_IDLE_TYPES]; 726 unsigned long lb_hot_gained[CPU_MAX_IDLE_TYPES];
728 unsigned long lb_nobusyg[MAX_IDLE_TYPES]; 727 unsigned long lb_nobusyg[CPU_MAX_IDLE_TYPES];
729 unsigned long lb_nobusyq[MAX_IDLE_TYPES]; 728 unsigned long lb_nobusyq[CPU_MAX_IDLE_TYPES];
730 729
731 /* Active load balancing */ 730 /* Active load balancing */
732 unsigned long alb_cnt; 731 unsigned long alb_cnt;