Merge branch 'cpumask-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 03:03:50 +0000 (13:33 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 03:03:50 +0000 (13:33 +1030)
Conflicts:

arch/x86/include/asm/topology.h
drivers/oprofile/buffer_sync.c
(Both cases: changed in Linus' tree, removed in Ingo's).

1  2 
arch/x86/include/asm/topology.h
arch/x86/kernel/apm_32.c
drivers/pci/pci-driver.c
kernel/sched.c
mm/page_alloc.c
mm/slab.c
mm/vmscan.c
net/sunrpc/svc.c

index 744299c0b7749829a2af79dc76eb10f0fbfa6a55,e3f4198371a9a46e4556241d2cb95d5cad78263d..892b119dba6ff8c64c99c8c3432e812de860ef98
@@@ -209,14 -172,14 +172,10 @@@ static inline int early_cpu_to_node(in
        return 0;
  }
  
- static inline const cpumask_t *cpumask_of_node(int node)
- {
-       return &cpu_online_map;
- }
- static inline cpumask_t node_to_cpumask(int node)
+ static inline const struct cpumask *cpumask_of_node(int node)
  {
-       return cpu_online_map;
+       return cpu_online_mask;
  }
 -static inline int node_to_first_cpu(int node)
 -{
 -      return cpumask_first(cpu_online_mask);
 -}
  
  static inline void setup_node_to_cpumask_map(void) { }
  
  
  #include <asm-generic/topology.h>
  
- extern cpumask_t cpu_coregroup_map(int cpu);
 -#ifdef CONFIG_NUMA
 -/* Returns the number of the first CPU on Node 'node'. */
 -static inline int node_to_first_cpu(int node)
 -{
 -      return cpumask_first(cpumask_of_node(node));
 -}
 -#endif
 -
  extern const struct cpumask *cpu_coregroup_mask(int cpu);
  
  #ifdef ENABLE_TOPO_DEFINES
Simple merge
Simple merge
diff --cc kernel/sched.c
Simple merge
diff --cc mm/page_alloc.c
Simple merge
diff --cc mm/slab.c
Simple merge
diff --cc mm/vmscan.c
index 479e46719394cceccad44d55c28db3e2942616e7,1cdbf0b057278e8f157da93bb6eda0dc80644387..f74a61e522f43657bfa17aaf3219ca2dcb0c18a7
@@@ -1963,10 -1963,8 +1963,10 @@@ static int kswapd(void *p
        struct reclaim_state reclaim_state = {
                .reclaimed_slab = 0,
        };
-       node_to_cpumask_ptr(cpumask, pgdat->node_id);
+       const struct cpumask *cpumask = cpumask_of_node(pgdat->node_id);
  
 +      lockdep_set_current_reclaim_state(GFP_KERNEL);
 +
        if (!cpumask_empty(cpumask))
                set_cpus_allowed_ptr(tsk, cpumask);
        current->reclaim_state = &reclaim_state;
Simple merge