Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125652
b: refs/heads/master
c: 96d76a7
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Dec 26, 2008
1 parent 9e9cebb commit f27d253
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 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: 393d68fb9929817cde7ab31c82d66fcb28ad35fc
refs/heads/master: 96d76a74870d5f11ce2abdd09a8dcdc401d714d1
10 changes: 6 additions & 4 deletions trunk/arch/sparc/include/asm/topology_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ static inline cpumask_t node_to_cpumask(int node)
{
return numa_cpumask_lookup_table[node];
}
#define cpumask_of_node(node) (&numa_cpumask_lookup_table[node])

/* Returns a pointer to the cpumask of CPUs on Node 'node'. */
/*
* Returns a pointer to the cpumask of CPUs on Node 'node'.
* Deprecated: use "const struct cpumask *mask = cpumask_of_node(node)"
*/
#define node_to_cpumask_ptr(v, node) \
cpumask_t *v = &(numa_cpumask_lookup_table[node])

Expand All @@ -26,9 +30,7 @@ static inline cpumask_t node_to_cpumask(int node)

static inline int node_to_first_cpu(int node)
{
cpumask_t tmp;
tmp = node_to_cpumask(node);
return first_cpu(tmp);
return cpumask_first(cpumask_of_node(node));
}

struct pci_bus;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ static unsigned int __init build_one_device_irq(struct of_device *op,
out:
nid = of_node_to_nid(dp);
if (nid != -1) {
cpumask_t numa_mask = node_to_cpumask(nid);
cpumask_t numa_mask = *cpumask_of_node(nid);

irq_set_affinity(irq, &numa_mask);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc64/kernel/pci_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static int bringup_one_msi_queue(struct pci_pbm_info *pbm,

nid = pbm->numa_node;
if (nid != -1) {
cpumask_t numa_mask = node_to_cpumask(nid);
cpumask_t numa_mask = *cpumask_of_node(nid);

irq_set_affinity(irq, &numa_mask);
}
Expand Down

0 comments on commit f27d253

Please sign in to comment.