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); |
| 9 | |
Heiko Carstens | c10fde0 | 2008-04-17 07:46:13 +0200 | [diff] [blame] | 10 | int topology_set_cpu_management(int fc); |
| 11 | void topology_schedule_update(void); |
| 12 | |
| 13 | #define POLARIZATION_UNKNWN (-1) |
| 14 | #define POLARIZATION_HRZ (0) |
| 15 | #define POLARIZATION_VL (1) |
| 16 | #define POLARIZATION_VM (2) |
| 17 | #define POLARIZATION_VH (3) |
| 18 | |
Heiko Carstens | dbd70fb | 2008-04-17 07:46:12 +0200 | [diff] [blame] | 19 | #ifdef CONFIG_SMP |
| 20 | void s390_init_cpu_topology(void); |
| 21 | #else |
| 22 | static inline void s390_init_cpu_topology(void) |
| 23 | { |
| 24 | }; |
| 25 | #endif |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #include <asm-generic/topology.h> |
| 28 | |
| 29 | #endif /* _ASM_S390_TOPOLOGY_H */ |