projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: oprofile: Fix BUG due to smp_processor_id() in preemptible code.
[firefly-linux-kernel-4.4.55.git]
/
arch
/
mips
/
include
/
asm
/
cpu-features.h
diff --git
a/arch/mips/include/asm/cpu-features.h
b/arch/mips/include/asm/cpu-features.h
index 1dc086087a723fd9c90c427d05f4eb3c8ca919f6..fa44f3ec530214f5014664cda4611b1a5a027251 100644
(file)
--- a/
arch/mips/include/asm/cpu-features.h
+++ b/
arch/mips/include/asm/cpu-features.h
@@
-17,6
+17,8
@@
#define current_cpu_type() current_cpu_data.cputype
#endif
+#define boot_cpu_type() cpu_data[0].cputype
+
/*
* SMP assumption: Options of CPU 0 are a superset of all processors.
* This is true for all known MIPS systems.