projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cacheinfo: Add use_arch[|_cache]_info field/function
[platform/kernel/linux-starfive.git]
/
include
/
linux
/
cacheinfo.h
diff --git
a/include/linux/cacheinfo.h
b/include/linux/cacheinfo.h
index
6147b26
..
a5cfd44
100644
(file)
--- a/
include/linux/cacheinfo.h
+++ b/
include/linux/cacheinfo.h
@@
-131,4
+131,10
@@
static inline int get_cpu_cacheinfo_id(int cpu, int level)
return -1;
}
+#ifdef CONFIG_ARM64
+#define use_arch_cache_info() (true)
+#else
+#define use_arch_cache_info() (false)
+#endif
+
#endif /* _LINUX_CACHEINFO_H */