This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch releases/13.0
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/13.0 by this push:
     new 25eae573e59 kinetis/rtc: Enable global lock for all
25eae573e59 is described below

commit 25eae573e59b1c4ae50a05c6650cd83f68c83c1b
Author: Jiri Vlasak <[email protected]>
AuthorDate: Wed Aug 5 08:45:51 2026 +0200

    kinetis/rtc: Enable global lock for all
    
    g_rtc_lock is used by the up_rtc_settime, a base RTC function.
    Therefore, it should be available even for this procedure, not just when
    CONFIG_RTC_HIRES.
    
    Signed-off-by: Jiri Vlasak <[email protected]>
---
 arch/arm/src/kinetis/kinetis_rtc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/src/kinetis/kinetis_rtc.c 
b/arch/arm/src/kinetis/kinetis_rtc.c
index 631b4cb9f1f..da16a2b9c3a 100644
--- a/arch/arm/src/kinetis/kinetis_rtc.c
+++ b/arch/arm/src/kinetis/kinetis_rtc.c
@@ -63,9 +63,7 @@
  * Private Data
  ****************************************************************************/
 
-#ifdef CONFIG_RTC_HIRES
 static spinlock_t g_rtc_lock = SP_UNLOCKED;
-#endif
 
 #ifdef CONFIG_RTC_ALARM
 static alarmcb_t g_alarmcb;

Reply via email to