blob: fff4a86c602af3b1b0d65935572177e336c837fa [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);
Rusty Russell9be3eec2008-12-26 22:23:42 +10309const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
Heiko Carstensdbd70fb2008-04-17 07:46:12 +020010
Heiko Carstensd00aa4e2008-04-30 13:38:40 +020011extern cpumask_t cpu_core_map[NR_CPUS];
12
13#define topology_core_siblings(cpu) (cpu_core_map[cpu])
14
Heiko Carstensc10fde02008-04-17 07:46:13 +020015int topology_set_cpu_management(int fc);
16void topology_schedule_update(void);
17
18#define POLARIZATION_UNKNWN (-1)
19#define POLARIZATION_HRZ (0)
20#define POLARIZATION_VL (1)
21#define POLARIZATION_VM (2)
22#define POLARIZATION_VH (3)
23
Heiko Carstensdbd70fb2008-04-17 07:46:12 +020024#ifdef CONFIG_SMP
25void s390_init_cpu_topology(void);
26#else
27static inline void s390_init_cpu_topology(void)
28{
29};
30#endif
31
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#include <asm-generic/topology.h>
33
34#endif /* _ASM_S390_TOPOLOGY_H */