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 | |
Rusty Russell | 9be3eec | 2008-12-26 22:23:42 +1030 | [diff] [blame] | 8 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu); |
Heiko Carstens | dbd70fb | 2008-04-17 07:46:12 +0200 | [diff] [blame] | 9 | |
Heiko Carstens | 10d3858 | 2010-05-17 10:00:12 +0200 | [diff] [blame] | 10 | extern unsigned char cpu_core_id[NR_CPUS]; |
Heiko Carstens | d00aa4e | 2008-04-30 13:38:40 +0200 | [diff] [blame] | 11 | extern cpumask_t cpu_core_map[NR_CPUS]; |
| 12 | |
Heiko Carstens | 10d3858 | 2010-05-17 10:00:12 +0200 | [diff] [blame] | 13 | #define topology_core_id(cpu) (cpu_core_id[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 | |
Heiko Carstens | f55d638 | 2009-03-18 13:27:33 +0100 | [diff] [blame] | 33 | #define SD_MC_INIT SD_CPU_INIT |
| 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | #include <asm-generic/topology.h> |
| 36 | |
| 37 | #endif /* _ASM_S390_TOPOLOGY_H */ |