Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6

* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
[IA64] Fix build breakage

+21
+4
arch/ia64/kernel/smpboot.c
··· 390 390 391 391 fix_b0_for_bsp(); 392 392 393 + #ifdef CONFIG_NUMA 393 394 /* 394 395 * numa_node_id() works after this. 395 396 */ 396 397 set_numa_node(cpu_to_node_map[cpuid]); 397 398 set_numa_mem(local_memory_node(cpu_to_node_map[cpuid])); 399 + #endif 398 400 399 401 ipi_call_lock_irq(); 400 402 spin_lock(&vector_lock); ··· 640 638 { 641 639 cpu_set(smp_processor_id(), cpu_online_map); 642 640 cpu_set(smp_processor_id(), cpu_callin_map); 641 + #ifdef CONFIG_NUMA 643 642 set_numa_node(cpu_to_node_map[smp_processor_id()]); 643 + #endif 644 644 per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; 645 645 paravirt_post_smp_prepare_boot_cpu(); 646 646 }
+17
arch/ia64/mm/numa.c
··· 17 17 #include <linux/init.h> 18 18 #include <linux/bootmem.h> 19 19 #include <linux/module.h> 20 + #include <linux/random.h> 20 21 #include <asm/mmzone.h> 21 22 #include <asm/numa.h> 22 23 ··· 50 49 51 50 return (i < num_node_memblks) ? node_memblk[i].nid : (num_node_memblks ? -1 : 0); 52 51 } 52 + 53 + /* 54 + * Return the bit number of a random bit set in the nodemask. 55 + * (returns -1 if nodemask is empty) 56 + */ 57 + int __node_random(const nodemask_t *maskp) 58 + { 59 + int w, bit = -1; 60 + 61 + w = nodes_weight(*maskp); 62 + if (w) 63 + bit = bitmap_ord_to_pos(maskp->bits, 64 + get_random_int() % w, MAX_NUMNODES); 65 + return bit; 66 + } 67 + EXPORT_SYMBOL(__node_random); 53 68 54 69 #if defined(CONFIG_SPARSEMEM) && defined(CONFIG_NUMA) 55 70 /*