it's better to call the kernrel api insteaad user space api in kernel Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
here is the reason: 1.clock_systime_timespec(core function) always exist regardless the setting 2.CLOCK_MONOTONIC is a foundamental clock type required by many places Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
N/A guide link: https://www.kernel.org/doc/html/v4.14/media/uapi/rc/lirc-dev.html Change-Id: I84abfc12578d444d72c8c0df31d06d1a85ce0725 Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>