|
@@ -133,7 +133,7 @@ sn2_ipi_flush_all_tlb(struct mm_struct *mm)
|
|
|
unsigned long itc;
|
|
|
|
|
|
itc = ia64_get_itc();
|
|
|
- smp_flush_tlb_cpumask(mm->cpu_vm_mask);
|
|
|
+ smp_flush_tlb_cpumask(*mm_cpumask(mm));
|
|
|
itc = ia64_get_itc() - itc;
|
|
|
__get_cpu_var(ptcstats).shub_ipi_flushes_itc_clocks += itc;
|
|
|
__get_cpu_var(ptcstats).shub_ipi_flushes++;
|
|
@@ -182,7 +182,7 @@ sn2_global_tlb_purge(struct mm_struct *mm, unsigned long start,
|
|
|
nodes_clear(nodes_flushed);
|
|
|
i = 0;
|
|
|
|
|
|
- for_each_cpu_mask(cpu, mm->cpu_vm_mask) {
|
|
|
+ for_each_cpu(cpu, mm_cpumask(mm)) {
|
|
|
cnode = cpu_to_node(cpu);
|
|
|
node_set(cnode, nodes_flushed);
|
|
|
lcpu = cpu;
|
|
@@ -461,7 +461,7 @@ bool sn_cpu_disable_allowed(int cpu)
|
|
|
|
|
|
static void *sn2_ptc_seq_start(struct seq_file *file, loff_t * offset)
|
|
|
{
|
|
|
- if (*offset < NR_CPUS)
|
|
|
+ if (*offset < nr_cpu_ids)
|
|
|
return offset;
|
|
|
return NULL;
|
|
|
}
|
|
@@ -469,7 +469,7 @@ static void *sn2_ptc_seq_start(struct seq_file *file, loff_t * offset)
|
|
|
static void *sn2_ptc_seq_next(struct seq_file *file, void *data, loff_t * offset)
|
|
|
{
|
|
|
(*offset)++;
|
|
|
- if (*offset < NR_CPUS)
|
|
|
+ if (*offset < nr_cpu_ids)
|
|
|
return offset;
|
|
|
return NULL;
|
|
|
}
|
|
@@ -491,7 +491,7 @@ static int sn2_ptc_seq_show(struct seq_file *file, void *data)
|
|
|
seq_printf(file, "# ptctest %d, flushopt %d\n", sn2_ptctest, sn2_flush_opt);
|
|
|
}
|
|
|
|
|
|
- if (cpu < NR_CPUS && cpu_online(cpu)) {
|
|
|
+ if (cpu < nr_cpu_ids && cpu_online(cpu)) {
|
|
|
stat = &per_cpu(ptcstats, cpu);
|
|
|
seq_printf(file, "cpu %d %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld\n", cpu, stat->ptc_l,
|
|
|
stat->change_rid, stat->shub_ptc_flushes, stat->nodes_flushed,
|