arch: remove unnecessary sem_setprotocol code

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-03-10 08:20:01 +08:00 committed by Alan Carvalho de Assis
parent c44d55c70c
commit cf56e4113a
6 changed files with 0 additions and 11 deletions

View File

@ -753,7 +753,6 @@ static int s32k1xx_dma_setup(struct uart_dev_s *dev)
}
nxsem_init(&priv->txdmasem, 0, 1);
nxsem_set_protocol(&priv->txdmasem, SEM_PRIO_NONE);
}
/* Enable Tx DMA for the UART */

View File

@ -2910,7 +2910,6 @@ static int s32k3xx_dma_setup(struct uart_dev_s *dev)
}
nxsem_init(&priv->txdmasem, 0, 1);
nxsem_set_protocol(&priv->txdmasem, SEM_PRIO_NONE);
}
/* Enable Tx DMA for the UART */

View File

@ -2098,7 +2098,6 @@ struct spi_dev_s *sam_flex_spibus_initialize(int port)
*/
nxsem_init(&flex_spics->dmawait, 0, 0);
nxsem_set_protocol(&flex_spics->dmawait, SEM_PRIO_NONE);
#endif
flex_spi_dumpregs(flex_spi, "After initialization");

View File

@ -8485,7 +8485,6 @@ static inline void sam_sw_initialize(struct sam_usbhost_s *priv)
{
priv->pipelist[epno].idx = epno;
nxsem_init(&priv->pipelist[epno].waitsem, 0, 0);
sem_setprotocol(&priv->pipelist[epno].waitsem, SEM_PRIO_NONE);
sam_putreg8(USBHOST_PSTATUS_PFREEZE, SAM_USBHOST_PSTATUSSET(epno));

View File

@ -84,7 +84,6 @@ int pthread_barrier_init(FAR pthread_barrier_t *barrier,
else
{
sem_init(&barrier->sem, 0, 0);
sem_setprotocol(&barrier->sem, SEM_PRIO_NONE);
barrier->count = count;
}

View File

@ -71,12 +71,6 @@ int pthread_cond_init(FAR pthread_cond_t *cond,
}
else
{
/* The contained semaphore is used for signaling and, hence, should
* not have priority inheritance enabled.
*/
sem_setprotocol(&cond->sem, SEM_PRIO_NONE);
cond->clockid = attr ? attr->clockid : CLOCK_REALTIME;
}