1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 #ifndef _CPUMAP_H 1 #ifndef _CPUMAP_H 3 #define _CPUMAP_H 2 #define _CPUMAP_H 4 3 5 #ifdef CONFIG_SMP 4 #ifdef CONFIG_SMP 6 void cpu_map_rebuild(void); 5 void cpu_map_rebuild(void); 7 int map_to_cpu(unsigned int index); 6 int map_to_cpu(unsigned int index); 8 #define cpu_map_init() cpu_map_rebuild() 7 #define cpu_map_init() cpu_map_rebuild() 9 #else 8 #else 10 #define cpu_map_init() do {} while (0) 9 #define cpu_map_init() do {} while (0) 11 static inline int map_to_cpu(unsigned int inde 10 static inline int map_to_cpu(unsigned int index) 12 { 11 { 13 return raw_smp_processor_id(); 12 return raw_smp_processor_id(); 14 } 13 } 15 #endif 14 #endif 16 15 17 #endif 16 #endif 18 17
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.