From: zhiqiang liang Date: Wed, 20 Mar 2019 07:00:40 +0000 (+0800) Subject: cpu: add the cpuid check interface [1/1] X-Git-Tag: hardkernel-4.9.236-104~1521 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=924f3d54f003d97f29746194da1b86902914b20d;p=platform%2Fkernel%2Flinux-amlogic.git cpu: add the cpuid check interface [1/1] PD#SWPL-5865 Problem: SM1 bring up Solution: add the cpuid check interface Verify: AC200 Change-Id: Ifa7dd8fb0b6ec621411652acf6b799e69c4069b7 Signed-off-by: zhiqiang liang --- diff --git a/include/linux/amlogic/cpu_version.h b/include/linux/amlogic/cpu_version.h index 15111e2..b1274f9 100644 --- a/include/linux/amlogic/cpu_version.h +++ b/include/linux/amlogic/cpu_version.h @@ -191,6 +191,11 @@ static inline bool is_meson_tl1_cpu(void) return get_cpu_type() == MESON_CPU_MAJOR_ID_TL1; } +static inline bool is_meson_sm1_cpu(void) +{ + return get_cpu_type() == MESON_CPU_MAJOR_ID_SM1; +} + static inline bool cpu_after_eq(unsigned int id) { return get_cpu_type() >= id;