Commit a53f3545 authored by Adam Wujek's avatar Adam Wujek 💬

wr-servo: add shmem locks into wr_servo_reset function

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent d5fa46ca
......@@ -143,7 +143,11 @@ static int got_sync = 0;
void wr_servo_reset(struct pp_instance *ppi)
{
/* shmem lock */
wrs_shm_write(ppsi_head, WRS_SHM_WRITE_BEGIN);
ppi->flags = 0;
/* shmem unlock */
wrs_shm_write(ppsi_head, WRS_SHM_WRITE_END);
}
static inline int32_t delta_to_ps(struct FixedDelta d)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment