Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139096
b: refs/heads/master
c: e305cb8
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Mar 16, 2009
1 parent 1da0c64 commit 5768cfb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89229071c049e518668e34b234167d5ed9c94534
refs/heads/master: e305cb8f09b6e51940f78516f962ea819bc30ccd
2 changes: 1 addition & 1 deletion trunk/arch/sparc/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ static void __cpuinit dr_cpu_data(struct ds_info *dp,
if (cpu_list[i] == CPU_SENTINEL)
continue;

if (cpu_list[i] < NR_CPUS)
if (cpu_list[i] < nr_cpu_ids)
cpu_set(cpu_list[i], mask);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/sparc/kernel/irq_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ static int irq_choose_cpu(unsigned int virt_irq)
spin_lock_irqsave(&irq_rover_lock, flags);

while (!cpu_online(irq_rover)) {
if (++irq_rover >= NR_CPUS)
if (++irq_rover >= nr_cpu_ids)
irq_rover = 0;
}
cpuid = irq_rover;
do {
if (++irq_rover >= NR_CPUS)
if (++irq_rover >= nr_cpu_ids)
irq_rover = 0;
} while (!cpu_online(irq_rover));

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ static void __init numa_parse_mdesc_group_cpus(struct mdesc_handle *md,
if (strcmp(name, "cpu"))
continue;
id = mdesc_get_property(md, target, "id", NULL);
if (*id < NR_CPUS)
if (*id < nr_cpu_ids)
cpu_set(*id, *mask);
}
}
Expand Down

0 comments on commit 5768cfb

Please sign in to comment.