diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-08 17:59:29 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-08 17:59:29 -0400 |
| commit | 72494504498ff5ac2f086a83473d4dd1ca490bd3 (patch) | |
| tree | 7f1ceab43de3580235f1a56f2ae865901c09e4d7 /include/linux | |
| parent | cd96891d48a945ca2011fbeceda73813d6286195 (diff) | |
| parent | a841f8cef4bb124f0f5563314d0beaf2e1249d72 (diff) | |
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar.
* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched: Fix the relax_domain_level boot parameter
sched: Validate assumptions in sched_init_numa()
sched: Always initialize cpu-power
sched: Fix domain iteration
sched/rt: Fix lockdep annotation within find_lock_lowest_rq()
sched/numa: Load balance between remote nodes
sched/x86: Calculate booted cores after construction of sibling_mask
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c688d4cc2e40..4059c0f33f07 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -877,6 +877,8 @@ struct sched_group_power { | |||
| 877 | * Number of busy cpus in this group. | 877 | * Number of busy cpus in this group. |
| 878 | */ | 878 | */ |
| 879 | atomic_t nr_busy_cpus; | 879 | atomic_t nr_busy_cpus; |
| 880 | |||
| 881 | unsigned long cpumask[0]; /* iteration mask */ | ||
| 880 | }; | 882 | }; |
| 881 | 883 | ||
| 882 | struct sched_group { | 884 | struct sched_group { |
| @@ -901,6 +903,15 @@ static inline struct cpumask *sched_group_cpus(struct sched_group *sg) | |||
| 901 | return to_cpumask(sg->cpumask); | 903 | return to_cpumask(sg->cpumask); |
| 902 | } | 904 | } |
| 903 | 905 | ||
| 906 | /* | ||
| 907 | * cpumask masking which cpus in the group are allowed to iterate up the domain | ||
| 908 | * tree. | ||
| 909 | */ | ||
| 910 | static inline struct cpumask *sched_group_mask(struct sched_group *sg) | ||
| 911 | { | ||
| 912 | return to_cpumask(sg->sgp->cpumask); | ||
| 913 | } | ||
| 914 | |||
| 904 | /** | 915 | /** |
| 905 | * group_first_cpu - Returns the first cpu in the cpumask of a sched_group. | 916 | * group_first_cpu - Returns the first cpu in the cpumask of a sched_group. |
| 906 | * @group: The group whose first cpu is to be returned. | 917 | * @group: The group whose first cpu is to be returned. |
