Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_S390_TOPOLOGY_H |
| 2 | #define _ASM_S390_TOPOLOGY_H |
| 3 | |
Heiko Carstens | dbd70fb | 2008-04-17 07:46:12 +0200 | [diff] [blame] | 4 | #include <linux/cpumask.h> |
| 5 | |
| 6 | #define mc_capable() (1) |
| 7 | |
| 8 | cpumask_t cpu_coregroup_map(unsigned int cpu); |
Rusty Russell | 9be3eec | 2008-12-26 22:23:42 +1030 | [diff] [blame] | 9 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu); |
Heiko Carstens | dbd70fb | 2008-04-17 07:46:12 +0200 | [diff] [blame] | 10 | |
Heiko Carstens | d00aa4e | 2008-04-30 13:38:40 +0200 | [diff] [blame] | 11 | extern cpumask_t cpu_core_map[NR_CPUS]; |
| 12 | |
| 13 | #define topology_core_siblings(cpu) (cpu_core_map[cpu]) |
Rusty Russell | 2bb23a6 | 2009-01-01 10:12:20 +1030 | [diff] [blame] | 14 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) |
Heiko Carstens | d00aa4e | 2008-04-30 13:38:40 +0200 | [diff] [blame] | 15 | |
Heiko Carstens | c10fde0 | 2008-04-17 07:46:13 +0200 | [diff] [blame] | 16 | int topology_set_cpu_management(int fc); |
| 17 | void 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 Carstens | dbd70fb | 2008-04-17 07:46:12 +0200 | [diff] [blame] | 25 | #ifdef CONFIG_SMP |
| 26 | void s390_init_cpu_topology(void); |
| 27 | #else |
| 28 | static inline void s390_init_cpu_topology(void) |
| 29 | { |
| 30 | }; |
| 31 | #endif |
| 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #include <asm-generic/topology.h> |
| 34 | |
| 35 | #endif /* _ASM_S390_TOPOLOGY_H */ |