Skip to content

Commit

Permalink
cpumask: cpu_coregroup_mask(): s390
Browse files Browse the repository at this point in the history
Like cpu_coregroup_map, but returns a (const) pointer.

Compile-tested on s390 (defconfig).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
  • Loading branch information
Rusty Russell committed Dec 26, 2008
1 parent a0ae09b commit 9be3eec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/s390/include/asm/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define mc_capable() (1)

cpumask_t cpu_coregroup_map(unsigned int cpu);
const struct cpumask *cpu_coregroup_mask(unsigned int cpu);

extern cpumask_t cpu_core_map[NR_CPUS];

Expand Down
5 changes: 5 additions & 0 deletions arch/s390/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ cpumask_t cpu_coregroup_map(unsigned int cpu)
return mask;
}

const struct cpumask *cpu_coregroup_mask(unsigned int cpu)
{
return &cpu_core_map[cpu];
}

static void add_cpus_to_core(struct tl_cpu *tl_cpu, struct core_info *core)
{
unsigned int cpu;
Expand Down

0 comments on commit 9be3eec

Please sign in to comment.