From mboxrd@z Thu Jan 1 00:00:00 1970 From: hongzha1 Subject: [PATCH 02/10] dovetail/clock: implement pipeline_read_cycle_counter Date: Mon, 11 Jan 2021 01:43:10 -0500 Message-Id: <20210111064318.6154-2-hongzhan.chen@intel.com> In-Reply-To: <20210111064318.6154-1-hongzhan.chen@intel.com> References: <20210111064318.6154-1-hongzhan.chen@intel.com> List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xenomai@xenomai.org Signed-off-by: hongzha1 --- include/cobalt/kernel/dovetail/pipeline/clock.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/cobalt/kernel/dovetail/pipeline/clock.h b/include/cobalt/kernel/dovetail/pipeline/clock.h index 19e3d8986..5176b1506 100644 --- a/include/cobalt/kernel/dovetail/pipeline/clock.h +++ b/include/cobalt/kernel/dovetail/pipeline/clock.h @@ -13,9 +13,7 @@ struct timespec64; static inline u64 pipeline_read_cycle_counter(void) { /* Read the raw cycle counter of the core clock. */ - TODO(); - - return 0; + return ktime_get_raw_fast_ns(); } static inline void pipeline_set_timer_shot(unsigned long cycles) -- 2.17.1