arch: remove unnecessary sem_setprotocol code
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
c44d55c70c
commit
cf56e4113a
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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");
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user