topology.h (0eea505058740aa45486145296ef4fefbd8cab85) topology.h (9236b4dd6bfabefcf2063544083a66cd5f3a738d)
1#ifndef _ASM_S390_TOPOLOGY_H
2#define _ASM_S390_TOPOLOGY_H
3
4#include <linux/cpumask.h>
5#include <asm/numa.h>
6
7struct sysinfo_15_1_x;
8struct cpu;
9
1#ifndef _ASM_S390_TOPOLOGY_H
2#define _ASM_S390_TOPOLOGY_H
3
4#include <linux/cpumask.h>
5#include <asm/numa.h>
6
7struct sysinfo_15_1_x;
8struct cpu;
9
10#ifdef CONFIG_SCHED_BOOK
10#ifdef CONFIG_SCHED_TOPOLOGY
11
12struct cpu_topology_s390 {
13 unsigned short thread_id;
14 unsigned short core_id;
15 unsigned short socket_id;
16 unsigned short book_id;
17 unsigned short node_id;
18 cpumask_t thread_mask;

--- 16 unchanged lines hidden (view full) ---

35
36int topology_cpu_init(struct cpu *);
37int topology_set_cpu_management(int fc);
38void topology_schedule_update(void);
39void store_topology(struct sysinfo_15_1_x *info);
40void topology_expect_change(void);
41const struct cpumask *cpu_coregroup_mask(int cpu);
42
11
12struct cpu_topology_s390 {
13 unsigned short thread_id;
14 unsigned short core_id;
15 unsigned short socket_id;
16 unsigned short book_id;
17 unsigned short node_id;
18 cpumask_t thread_mask;

--- 16 unchanged lines hidden (view full) ---

35
36int topology_cpu_init(struct cpu *);
37int topology_set_cpu_management(int fc);
38void topology_schedule_update(void);
39void store_topology(struct sysinfo_15_1_x *info);
40void topology_expect_change(void);
41const struct cpumask *cpu_coregroup_mask(int cpu);
42
43#else /* CONFIG_SCHED_BOOK */
43#else /* CONFIG_SCHED_TOPOLOGY */
44
45static inline void topology_schedule_update(void) { }
46static inline int topology_cpu_init(struct cpu *cpu) { return 0; }
47static inline void topology_expect_change(void) { }
48
44
45static inline void topology_schedule_update(void) { }
46static inline int topology_cpu_init(struct cpu *cpu) { return 0; }
47static inline void topology_expect_change(void) { }
48
49#endif /* CONFIG_SCHED_BOOK */
49#endif /* CONFIG_SCHED_TOPOLOGY */
50
51#define POLARIZATION_UNKNOWN (-1)
52#define POLARIZATION_HRZ (0)
53#define POLARIZATION_VL (1)
54#define POLARIZATION_VM (2)
55#define POLARIZATION_VH (3)
56
57#define SD_BOOK_INIT SD_CPU_INIT

--- 39 unchanged lines hidden ---
50
51#define POLARIZATION_UNKNOWN (-1)
52#define POLARIZATION_HRZ (0)
53#define POLARIZATION_VL (1)
54#define POLARIZATION_VM (2)
55#define POLARIZATION_VH (3)
56
57#define SD_BOOK_INIT SD_CPU_INIT

--- 39 unchanged lines hidden ---