]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/sparc/kernel/cpumap.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / sparc / kernel / cpumap.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
280ff974
HP
2#ifndef _CPUMAP_H
3#define _CPUMAP_H
4
5#ifdef CONFIG_SMP
2e74a74f
SR
6void cpu_map_rebuild(void);
7int map_to_cpu(unsigned int index);
280ff974
HP
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