projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cc4fa1
)
MIPS: Provide nice way to access boot CPU's data.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 17 Sep 2013 11:58:12 +0000
(13:58 +0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 17 Sep 2013 11:58:12 +0000
(13:58 +0200)
boot_cpu_data is used the same as current_cpu_data but returns the CPU
data for CPU 0. This means it doesn't have to use smp_processor_id()
thus no need to disable preemption.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-info.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/include/asm/cpu-info.h
b/arch/mips/include/asm/cpu-info.h
index 41401d8eb7d1a3ca13bfbe77c7d78575307e3531..21c8e29c8f91e87486f90d3aaa7fbe79220add5b 100644
(file)
--- a/
arch/mips/include/asm/cpu-info.h
+++ b/
arch/mips/include/asm/cpu-info.h
@@
-84,6
+84,7
@@
struct cpuinfo_mips {
extern struct cpuinfo_mips cpu_data[];
#define current_cpu_data cpu_data[smp_processor_id()]
#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
+#define boot_cpu_data cpu_data[0]
extern void cpu_probe(void);
extern void cpu_report(void);