blob: d96c916434586c3ea05abdac4ff451f0caa08465 [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
8cpumask_t cpu_coregroup_map(unsigned int cpu);
9
Heiko Carstensd00aa4e2008-04-30 13:38:40 +020010extern cpumask_t cpu_core_map[NR_CPUS];
11
12#define topology_core_siblings(cpu) (cpu_core_map[cpu])
13
Heiko Carstensc10fde02008-04-17 07:46:13 +020014int topology_set_cpu_management(int fc);
15void topology_schedule_update(void);
16
17#define POLARIZATION_UNKNWN (-1)
18#define POLARIZATION_HRZ (0)
19#define POLARIZATION_VL (1)
20#define POLARIZATION_VM (2)
21#define POLARIZATION_VH (3)
22
Heiko Carstensdbd70fb2008-04-17 07:46:12 +020023#ifdef CONFIG_SMP
24void s390_init_cpu_topology(void);
25#else
26static inline void s390_init_cpu_topology(void)
27{
28};
29#endif
30
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#include <asm-generic/topology.h>
32
33#endif /* _ASM_S390_TOPOLOGY_H */