repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Linux 4.13.16
[linux/fpc-iii.git]
/
arch
/
sparc
/
kernel
/
cpumap.h
blob
9dac398c434a4bab1b30333d2d39e1a23ffd88db
1
#ifndef _CPUMAP_H
2
#define _CPUMAP_H
3
4
#ifdef CONFIG_SMP
5
void
cpu_map_rebuild
(
void
);
6
int
map_to_cpu
(
unsigned int
index
);
7
#define cpu_map_init() cpu_map_rebuild()
8
#else
9
#define cpu_map_init() do {} while (0)
10
static
inline
int
map_to_cpu
(
unsigned int
index
)
11
{
12
return
raw_smp_processor_id
();
13
}
14
#endif
15
16
#endif