Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125657
b: refs/heads/master
c: 2258a5b
h: refs/heads/master
i:
  125655: 8c841e3
v: v3
  • Loading branch information
Rusty Russell committed Dec 26, 2008
1 parent b883114 commit 5a2b192
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4a2f916a8326065816a0743dd1b0ca2ffd18f5f
refs/heads/master: 2258a5bb1064351b552aceaff29393967d694fa3
17 changes: 17 additions & 0 deletions trunk/arch/alpha/include/asm/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,24 @@ static inline cpumask_t node_to_cpumask(int node)
return node_cpu_mask;
}

extern struct cpumask node_to_cpumask_map[];
/* FIXME: This is dumb, recalculating every time. But simple. */
static const struct cpumask *cpumask_of_node(int node)
{
int cpu;

cpumask_clear(&node_to_cpumask_map[node]);

for_each_online_cpu(cpu) {
if (cpu_to_node(cpu) == node)
cpumask_set_cpu(cpu, node_to_cpumask_map[node]);
}

return &node_to_cpumask_map[node];
}

#define pcibus_to_cpumask(bus) (cpu_online_map)
#define cpumask_of_pcibus(bus) (cpu_online_mask)

#endif /* !CONFIG_NUMA */
# include <asm-generic/topology.h>
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/alpha/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ int alpha_l3_cacheshape;
unsigned long alpha_verbose_mcheck = CONFIG_VERBOSE_MCHECK_ON;
#endif

#ifdef CONFIG_NUMA
struct cpumask node_to_cpumask_map[MAX_NUMNODES] __read_mostly;
EXPORT_SYMBOL(node_to_cpumask_map);
#endif

/* Which processor we booted from. */
int boot_cpuid;

Expand Down

0 comments on commit 5a2b192

Please sign in to comment.