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] Enable support for the userlocal hardware register
[firefly-linux-kernel-4.4.55.git]
/
include
/
asm-mips
/
cpu-features.h
diff --git
a/include/asm-mips/cpu-features.h
b/include/asm-mips/cpu-features.h
index 5e4bed123b487640f13541f3153e5d1e43960ab1..d95a83e3e1d72e4111005764e5e0825610b0f372 100644
(file)
--- a/
include/asm-mips/cpu-features.h
+++ b/
include/asm-mips/cpu-features.h
@@
-150,6
+150,10
@@
#define cpu_has_mipsmt (cpu_data[0].ases & MIPS_ASE_MIPSMT)
#endif
#define cpu_has_mipsmt (cpu_data[0].ases & MIPS_ASE_MIPSMT)
#endif
+#ifndef cpu_has_userlocal
+#define cpu_has_userlocal (cpu_data[0].options & MIPS_CPU_ULRI)
+#endif
+
#ifdef CONFIG_32BIT
# ifndef cpu_has_nofpuex
# define cpu_has_nofpuex (cpu_data[0].options & MIPS_CPU_NOFPUEX)
#ifdef CONFIG_32BIT
# ifndef cpu_has_nofpuex
# define cpu_has_nofpuex (cpu_data[0].options & MIPS_CPU_NOFPUEX)