]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/s390/include/asm/topology.h
[S390] topology: expose core identifier
[net-next-2.6.git] / arch / s390 / include / asm / topology.h
CommitLineData
1da177e4
LT
1#ifndef _ASM_S390_TOPOLOGY_H
2#define _ASM_S390_TOPOLOGY_H
3
dbd70fb4
HC
4#include <linux/cpumask.h>
5
6#define mc_capable() (1)
7
9be3eec2 8const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
dbd70fb4 9
10d38589 10extern unsigned char cpu_core_id[NR_CPUS];
d00aa4e7
HC
11extern cpumask_t cpu_core_map[NR_CPUS];
12
10d38589 13#define topology_core_id(cpu) (cpu_core_id[cpu])
2bb23a63 14#define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
d00aa4e7 15
c10fde0d
HC
16int topology_set_cpu_management(int fc);
17void topology_schedule_update(void);
18
19#define POLARIZATION_UNKNWN (-1)
20#define POLARIZATION_HRZ (0)
21#define POLARIZATION_VL (1)
22#define POLARIZATION_VM (2)
23#define POLARIZATION_VH (3)
24
dbd70fb4
HC
25#ifdef CONFIG_SMP
26void s390_init_cpu_topology(void);
27#else
28static inline void s390_init_cpu_topology(void)
29{
30};
31#endif
32
f55d6385
HC
33#define SD_MC_INIT SD_CPU_INIT
34
1da177e4
LT
35#include <asm-generic/topology.h>
36
37#endif /* _ASM_S390_TOPOLOGY_H */