Linux Audio

Check our new training course

Linux kernel drivers training

May 6-19, 2025
Register
Loading...
v4.17
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _CPUMAP_H
 3#define _CPUMAP_H
 4
 5#ifdef CONFIG_SMP
 6void cpu_map_rebuild(void);
 7int map_to_cpu(unsigned int index);
 8#define cpu_map_init() cpu_map_rebuild()
 9#else
10#define cpu_map_init() do {} while (0)
11static inline int map_to_cpu(unsigned int index)
12{
13	return raw_smp_processor_id();
14}
15#endif
16
17#endif
v4.6
 
 1#ifndef _CPUMAP_H
 2#define _CPUMAP_H
 3
 4#ifdef CONFIG_SMP
 5void cpu_map_rebuild(void);
 6int map_to_cpu(unsigned int index);
 7#define cpu_map_init() cpu_map_rebuild()
 8#else
 9#define cpu_map_init() do {} while (0)
10static inline int map_to_cpu(unsigned int index)
11{
12	return raw_smp_processor_id();
13}
14#endif
15
16#endif