blob: dc8a67297d0f660c3047b8eba975350f729b886e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_S390_TOPOLOGY_H
2#define _ASM_S390_TOPOLOGY_H
3
Heiko Carstensdbd70fb2008-04-17 07:46:12 +02004#include <linux/cpumask.h>
5
6#define mc_capable() (1)
7
Rusty Russell9be3eec2008-12-26 22:23:42 +10308const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
Heiko Carstensdbd70fb2008-04-17 07:46:12 +02009
Heiko Carstens10d38582010-05-17 10:00:12 +020010extern unsigned char cpu_core_id[NR_CPUS];
Heiko Carstensd00aa4e2008-04-30 13:38:40 +020011extern cpumask_t cpu_core_map[NR_CPUS];
12
Heiko Carstens10d38582010-05-17 10:00:12 +020013#define topology_core_id(cpu) (cpu_core_id[cpu])
Rusty Russell2bb23a62009-01-01 10:12:20 +103014#define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
Heiko Carstensd00aa4e2008-04-30 13:38:40 +020015
Heiko Carstensc10fde02008-04-17 07:46:13 +020016int 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
Heiko Carstensdbd70fb2008-04-17 07:46:12 +020025#ifdef CONFIG_SMP
26void s390_init_cpu_topology(void);
27#else
28static inline void s390_init_cpu_topology(void)
29{
30};
31#endif
32
Heiko Carstensf55d6382009-03-18 13:27:33 +010033#define SD_MC_INIT SD_CPU_INIT
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#include <asm-generic/topology.h>
36
37#endif /* _ASM_S390_TOPOLOGY_H */