projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7d8022
)
cpuver: g12b: add cpuversion api for g12b
author
Qiufang Dai
<qiufang.dai@amlogic.com>
Mon, 7 May 2018 03:37:14 +0000
(11:37 +0800)
committer
Yixun Lan
<yixun.lan@amlogic.com>
Fri, 29 Jun 2018 06:34:00 +0000
(23:34 -0700)
PD#165090: add cpuversion api for g12b
Change-Id: I64a5edb8953258b2033fe6aab05e75890ff7e9ae
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
include/linux/amlogic/cpu_version.h
patch
|
blob
|
history
diff --git
a/include/linux/amlogic/cpu_version.h
b/include/linux/amlogic/cpu_version.h
index
471c8be
..
4b6913b
100644
(file)
--- a/
include/linux/amlogic/cpu_version.h
+++ b/
include/linux/amlogic/cpu_version.h
@@
-165,6
+165,11
@@
static inline bool is_meson_g12a_cpu(void)
return get_cpu_type() == MESON_CPU_MAJOR_ID_G12A;
}
+static inline bool is_meson_g12b_cpu(void)
+{
+ return get_cpu_type() == MESON_CPU_MAJOR_ID_G12B;
+}
+
static inline bool cpu_after_eq(unsigned int id)
{
return get_cpu_type() >= id;