From aae0876d82c49ee1b2970dbe4169341350f86311 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Thu, 24 Feb 2022 14:23:49 +0200 Subject: [PATCH] platforms/rpi: Clean away the removed hrt_elapsed_time_atomic Signed-off-by: Jukka Laitinen --- platforms/nuttx/src/px4/rpi/rpi_common/hrt/hrt.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/platforms/nuttx/src/px4/rpi/rpi_common/hrt/hrt.c b/platforms/nuttx/src/px4/rpi/rpi_common/hrt/hrt.c index cbdaec6eb4..12050a247d 100644 --- a/platforms/nuttx/src/px4/rpi/rpi_common/hrt/hrt.c +++ b/platforms/nuttx/src/px4/rpi/rpi_common/hrt/hrt.c @@ -497,20 +497,6 @@ hrt_abstime hrt_absolute_time(void) return ((uint64_t) hi << 32) | lo; } -/** - * Compare a time value with the current time as atomic operation - */ -hrt_abstime hrt_elapsed_time_atomic(const volatile hrt_abstime *then) -{ - irqstate_t flags = px4_enter_critical_section(); - - hrt_abstime delta = hrt_absolute_time() - *then; - - px4_leave_critical_section(flags); - - return delta; -} - /** * Store the absolute time in an interrupt-safe fashion */