aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/topology.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/include/asm/topology.h')
-rw-r--r--arch/s390/include/asm/topology.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/asm/topology.h b/arch/s390/include/asm/topology.h
index bc6f45421c98..fa1bfce10370 100644
--- a/arch/s390/include/asm/topology.h
+++ b/arch/s390/include/asm/topology.h
@@ -23,6 +23,7 @@ struct cpu_topology_s390 {
23}; 23};
24 24
25extern struct cpu_topology_s390 cpu_topology[NR_CPUS]; 25extern struct cpu_topology_s390 cpu_topology[NR_CPUS];
26extern cpumask_t cpus_with_topology;
26 27
27#define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 28#define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id)
28#define topology_thread_id(cpu) (cpu_topology[cpu].thread_id) 29#define topology_thread_id(cpu) (cpu_topology[cpu].thread_id)
@@ -36,6 +37,7 @@ extern struct cpu_topology_s390 cpu_topology[NR_CPUS];
36 37
37#define mc_capable() 1 38#define mc_capable() 1
38 39
40void topology_init_early(void);
39int topology_cpu_init(struct cpu *); 41int topology_cpu_init(struct cpu *);
40int topology_set_cpu_management(int fc); 42int topology_set_cpu_management(int fc);
41void topology_schedule_update(void); 43void topology_schedule_update(void);
@@ -45,6 +47,7 @@ const struct cpumask *cpu_coregroup_mask(int cpu);
45 47
46#else /* CONFIG_SCHED_TOPOLOGY */ 48#else /* CONFIG_SCHED_TOPOLOGY */
47 49
50static inline void topology_init_early(void) { }
48static inline void topology_schedule_update(void) { } 51static inline void topology_schedule_update(void) { }
49static inline int topology_cpu_init(struct cpu *cpu) { return 0; } 52static inline int topology_cpu_init(struct cpu *cpu) { return 0; }
50static inline void topology_expect_change(void) { } 53static inline void topology_expect_change(void) { }