~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/s390/include/asm/topology.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/s390/include/asm/topology.h (Architecture m68k) and /arch/mips/include/asm-mips/topology.h (Architecture mips)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _ASM_S390_TOPOLOGY_H                      
  3 #define _ASM_S390_TOPOLOGY_H                      
  4                                                   
  5 #include <linux/cpumask.h>                        
  6 #include <asm/numa.h>                             
  7                                                   
  8 struct sysinfo_15_1_x;                            
  9 struct cpu;                                       
 10                                                   
 11 #ifdef CONFIG_SCHED_TOPOLOGY                      
 12                                                   
 13 struct cpu_topology_s390 {                        
 14         unsigned short thread_id;                 
 15         unsigned short core_id;                   
 16         unsigned short socket_id;                 
 17         unsigned short book_id;                   
 18         unsigned short drawer_id;                 
 19         unsigned short dedicated : 1;             
 20         int booted_cores;                         
 21         cpumask_t thread_mask;                    
 22         cpumask_t core_mask;                      
 23         cpumask_t book_mask;                      
 24         cpumask_t drawer_mask;                    
 25 };                                                
 26                                                   
 27 extern struct cpu_topology_s390 cpu_topology[N    
 28                                                   
 29 #define topology_physical_package_id(cpu) (cpu    
 30 #define topology_thread_id(cpu)           (cpu    
 31 #define topology_sibling_cpumask(cpu)     (&cp    
 32 #define topology_core_id(cpu)             (cpu    
 33 #define topology_core_cpumask(cpu)        (&cp    
 34 #define topology_book_id(cpu)             (cpu    
 35 #define topology_book_cpumask(cpu)        (&cp    
 36 #define topology_drawer_id(cpu)           (cpu    
 37 #define topology_drawer_cpumask(cpu)      (&cp    
 38 #define topology_cpu_dedicated(cpu)       (cpu    
 39 #define topology_booted_cores(cpu)        (cpu    
 40                                                   
 41 #define mc_capable() 1                            
 42                                                   
 43 void topology_init_early(void);                   
 44 int topology_cpu_init(struct cpu *);              
 45 int topology_set_cpu_management(int fc);          
 46 void topology_schedule_update(void);              
 47 void store_topology(struct sysinfo_15_1_x *inf    
 48 void update_cpu_masks(void);                      
 49 void topology_expect_change(void);                
 50 const struct cpumask *cpu_coregroup_mask(int c    
 51                                                   
 52 #else /* CONFIG_SCHED_TOPOLOGY */                 
 53                                                   
 54 static inline void topology_init_early(void) {    
 55 static inline void topology_schedule_update(vo    
 56 static inline int topology_cpu_init(struct cpu    
 57 static inline int topology_cpu_dedicated(int c    
 58 static inline int topology_booted_cores(int cp    
 59 static inline void update_cpu_masks(void) { }     
 60 static inline void topology_expect_change(void    
 61                                                   
 62 #endif /* CONFIG_SCHED_TOPOLOGY */                
 63                                                   
 64 #define POLARIZATION_UNKNOWN    (-1)              
 65 #define POLARIZATION_HRZ        (0)               
 66 #define POLARIZATION_VL         (1)               
 67 #define POLARIZATION_VM         (2)               
 68 #define POLARIZATION_VH         (3)               
 69                                                   
 70 #define CPU_CAPACITY_HIGH       SCHED_CAPACITY    
 71 #define CPU_CAPACITY_LOW        (SCHED_CAPACIT    
 72                                                   
 73 #define SD_BOOK_INIT    SD_CPU_INIT               
 74                                                   
 75 #ifdef CONFIG_NUMA                                
 76                                                   
 77 #define cpu_to_node cpu_to_node                   
 78 static inline int cpu_to_node(int cpu)            
 79 {                                                 
 80         return 0;                                 
 81 }                                                 
 82                                                   
 83 /* Returns a pointer to the cpumask of CPUs on    
 84 #define cpumask_of_node cpumask_of_node           
 85 static inline const struct cpumask *cpumask_of    
 86 {                                                 
 87         return cpu_possible_mask;                 
 88 }                                                 
 89                                                   
 90 #define pcibus_to_node(bus) __pcibus_to_node(b    
 91                                                   
 92 #else /* !CONFIG_NUMA */                          
 93                                                   
 94 #define numa_node_id numa_node_id                 
 95 static inline int numa_node_id(void)              
 96 {                                                 
 97         return 0;                                 
 98 }                                                 
 99                                                   
100 #endif /* CONFIG_NUMA */                          
101                                                   
102 #include <asm-generic/topology.h>                 
103                                                   
104 #endif /* _ASM_S390_TOPOLOGY_H */                 
105                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php