Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _CPUMAP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _CPUMAP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #ifdef CONFIG_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) void cpu_map_rebuild(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) int map_to_cpu(unsigned int index);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define cpu_map_init() cpu_map_rebuild()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define cpu_map_init() do {} while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) static inline int map_to_cpu(unsigned int index)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	return raw_smp_processor_id();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #endif