acpi.h (b10778a00d40b3d9fdaaf5891e802794781ff71c) | acpi.h (5d2068da8d339e4dff8f9b9a1246e6a79e2949d8) |
---|---|
1/* 2 * Copyright (C) 1999 VA Linux Systems 3 * Copyright (C) 1999 Walt Drummond <drummond@valinux.com> 4 * Copyright (C) 2000,2001 J.I. Lee <jung-ik.lee@intel.com> 5 * Copyright (C) 2001,2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 103 unchanged lines hidden (view full) --- 112 buf[2] |= ACPI_PDC_EST_CAPABILITY_SMP; 113} 114 115#define acpi_unlazy_tlb(x) 116 117#ifdef CONFIG_ACPI_NUMA 118extern cpumask_t early_cpu_possible_map; 119#define for_each_possible_early_cpu(cpu) \ | 1/* 2 * Copyright (C) 1999 VA Linux Systems 3 * Copyright (C) 1999 Walt Drummond <drummond@valinux.com> 4 * Copyright (C) 2000,2001 J.I. Lee <jung-ik.lee@intel.com> 5 * Copyright (C) 2001,2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 103 unchanged lines hidden (view full) --- 112 buf[2] |= ACPI_PDC_EST_CAPABILITY_SMP; 113} 114 115#define acpi_unlazy_tlb(x) 116 117#ifdef CONFIG_ACPI_NUMA 118extern cpumask_t early_cpu_possible_map; 119#define for_each_possible_early_cpu(cpu) \ |
120 for_each_cpu_mask((cpu), early_cpu_possible_map) | 120 for_each_cpu((cpu), &early_cpu_possible_map) |
121 122static inline void per_cpu_scan_finalize(int min_cpus, int reserve_cpus) 123{ 124 int low_cpu, high_cpu; 125 int cpu; 126 int next_nid = 0; 127 | 121 122static inline void per_cpu_scan_finalize(int min_cpus, int reserve_cpus) 123{ 124 int low_cpu, high_cpu; 125 int cpu; 126 int next_nid = 0; 127 |
128 low_cpu = cpus_weight(early_cpu_possible_map); | 128 low_cpu = cpumask_weight(&early_cpu_possible_map); |
129 130 high_cpu = max(low_cpu, min_cpus); 131 high_cpu = min(high_cpu + reserve_cpus, NR_CPUS); 132 133 for (cpu = low_cpu; cpu < high_cpu; cpu++) { | 129 130 high_cpu = max(low_cpu, min_cpus); 131 high_cpu = min(high_cpu + reserve_cpus, NR_CPUS); 132 133 for (cpu = low_cpu; cpu < high_cpu; cpu++) { |
134 cpu_set(cpu, early_cpu_possible_map); | 134 cpumask_set_cpu(cpu, &early_cpu_possible_map); |
135 if (node_cpuid[cpu].nid == NUMA_NO_NODE) { 136 node_cpuid[cpu].nid = next_nid; 137 next_nid++; 138 if (next_nid >= num_online_nodes()) 139 next_nid = 0; 140 } 141 } 142} 143#endif /* CONFIG_ACPI_NUMA */ 144 145#endif /*__KERNEL__*/ 146 147#endif /*_ASM_ACPI_H*/ | 135 if (node_cpuid[cpu].nid == NUMA_NO_NODE) { 136 node_cpuid[cpu].nid = next_nid; 137 next_nid++; 138 if (next_nid >= num_online_nodes()) 139 next_nid = 0; 140 } 141 } 142} 143#endif /* CONFIG_ACPI_NUMA */ 144 145#endif /*__KERNEL__*/ 146 147#endif /*_ASM_ACPI_H*/ |