Merge branch 'sched/core' into cpus4096
authorIngo Molnar <mingo@elte.hu>
Fri, 12 Dec 2008 12:48:57 +0000 (13:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 12 Dec 2008 12:48:57 +0000 (13:48 +0100)
Conflicts:
include/linux/ftrace.h
kernel/sched.c

1  2 
include/linux/ftrace.h
include/linux/sched.h
kernel/fork.c
kernel/posix-cpu-timers.c
kernel/sched.c
kernel/sched_rt.c
kernel/softlockup.c

index 11cac81eed08dacfc11f7093ec8c0fa66302bb56,9c5bc6be2b091274b37b14046f03ebf3db70c194..985b28dc2ba9b3d02bbc8be85597c86cb0b21d05
@@@ -6,9 -6,8 +6,10 @@@
  #include <linux/ktime.h>
  #include <linux/init.h>
  #include <linux/types.h>
+ #include <linux/module.h>
  #include <linux/kallsyms.h>
 +#include <linux/bitops.h>
 +#include <linux/sched.h>
  
  #ifdef CONFIG_FUNCTION_TRACER
  
Simple merge
diff --cc kernel/fork.c
Simple merge
Simple merge
diff --cc kernel/sched.c
index 4ed9f588faa6df521ea7fd403ae5325de9930a2a,ad7b93be56918e9137c60c79f171d38c44608819..e00c92d22655da8c80ca4d734d41e43fdadb1f78
@@@ -3676,12 -3685,9 +3685,12 @@@ out_balanced
  static void idle_balance(int this_cpu, struct rq *this_rq)
  {
        struct sched_domain *sd;
-       int pulled_task = -1;
+       int pulled_task = 0;
        unsigned long next_balance = jiffies + HZ;
 -      cpumask_t tmpmask;
 +      cpumask_var_t tmpmask;
 +
 +      if (!alloc_cpumask_var(&tmpmask, GFP_ATOMIC))
 +              return;
  
        for_each_domain(this_cpu, sd) {
                unsigned long interval;
@@@ -7711,13 -7670,19 +7724,19 @@@ static struct sched_domain_attr *dattr_
  
  /*
   * Special case: If a kmalloc of a doms_cur partition (array of
 - * cpumask_t) fails, then fallback to a single sched domain,
 - * as determined by the single cpumask_t fallback_doms.
 + * cpumask) fails, then fallback to a single sched domain,
 + * as determined by the single cpumask fallback_doms.
   */
 -static cpumask_t fallback_doms;
 +static cpumask_var_t fallback_doms;
  
- void __attribute__((weak)) arch_update_cpu_topology(void)
+ /*
+  * arch_update_cpu_topology lets virtualized architectures update the
+  * cpu core maps. It is supposed to return 1 if the topology changed
+  * or 0 if it stayed the same.
+  */
+ int __attribute__((weak)) arch_update_cpu_topology(void)
  {
+       return 0;
  }
  
  /*
@@@ -7821,8 -7788,8 +7844,8 @@@ void partition_sched_domains(int ndoms_
  
        /* Destroy deleted domains */
        for (i = 0; i < ndoms_cur; i++) {
-               for (j = 0; j < n; j++) {
+               for (j = 0; j < n && !new_topology; j++) {
 -                      if (cpus_equal(doms_cur[i], doms_new[j])
 +                      if (cpumask_equal(&doms_cur[i], &doms_new[j])
                            && dattrs_equal(dattr_cur, i, dattr_new, j))
                                goto match1;
                }
@@@ -7841,8 -7808,8 +7864,8 @@@ match1
  
        /* Build new domains */
        for (i = 0; i < ndoms_new; i++) {
-               for (j = 0; j < ndoms_cur; j++) {
+               for (j = 0; j < ndoms_cur && !new_topology; j++) {
 -                      if (cpus_equal(doms_new[i], doms_cur[j])
 +                      if (cpumask_equal(&doms_new[i], &doms_cur[j])
                            && dattrs_equal(dattr_new, i, dattr_cur, j))
                                goto match2;
                }
Simple merge
Simple merge