drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / sparc / kernel / cpumap.h
blob7d5b774862e7561c43c7a2d3cb4ce2215d5d57ba
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _CPUMAP_H
3 #define _CPUMAP_H
5 #ifdef CONFIG_SMP
6 void cpu_map_rebuild(void);
7 int map_to_cpu(unsigned int index);
8 #define cpu_map_init() cpu_map_rebuild()
9 #else
10 #define cpu_map_init() do {} while (0)
11 static inline int map_to_cpu(unsigned int index)
13 return raw_smp_processor_id();
15 #endif
17 #endif