Skip to content

Commit cbe13af

Browse files
Lenoidsacassis
authored andcommitted
arch/tricore: initialize spinlock used by tricore systimer
Add explicit spin_lock_init in tricore_systimer_initialize() for the lock used by tricore systimer. Signed-off-by: Haokun Dong <donghaokun@lixiang.com>
1 parent 255618d commit cbe13af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/tricore/src/common/tricore_systimer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ tricore_systimer_initialize(volatile void *tbase, int irq, uint64_t freq)
303303
struct tricore_systimer_lowerhalf_s *priv = &g_tricore_oneshot_lowerhalf;
304304

305305
priv->tbase = tbase;
306+
spin_lock_init(&priv->lock);
306307

307308
ASSERT(freq <= UINT32_MAX);
308309

0 commit comments

Comments
 (0)