board: There is no need to use sched_[un]lock
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
b96a753747
commit
a4c9268a40
|
@ -241,7 +241,6 @@ static CXD56_AUDIO_ECODE exec_dma_ch_sync_workaround(
|
|||
/* Lock interrupt */
|
||||
|
||||
up_irq_disable();
|
||||
sched_lock();
|
||||
|
||||
/* Wait smp interrupt. */
|
||||
|
||||
|
@ -255,7 +254,6 @@ static CXD56_AUDIO_ECODE exec_dma_ch_sync_workaround(
|
|||
|
||||
if (timeout_cnt == DMA_TIMEOUT_CNT)
|
||||
{
|
||||
sched_unlock();
|
||||
up_irq_enable();
|
||||
return CXD56_AUDIO_ECODE_DMA_SMP_TIMEOUT;
|
||||
}
|
||||
|
@ -270,7 +268,6 @@ static CXD56_AUDIO_ECODE exec_dma_ch_sync_workaround(
|
|||
|
||||
/* Unlock interrupt */
|
||||
|
||||
sched_unlock();
|
||||
up_irq_enable();
|
||||
|
||||
/* Wait for 1sample tramsfer. */
|
||||
|
|
|
@ -183,8 +183,6 @@ int sam_watchdog_initialize(void)
|
|||
/* Start Kicker task */
|
||||
|
||||
#if defined(CONFIG_WDT_THREAD)
|
||||
sched_lock();
|
||||
|
||||
int taskid = kthread_create(CONFIG_WDT_THREAD_NAME,
|
||||
CONFIG_WDT_THREAD_PRIORITY,
|
||||
CONFIG_WDT_THREAD_STACKSIZE,
|
||||
|
@ -193,7 +191,6 @@ int sam_watchdog_initialize(void)
|
|||
DEBUGASSERT(taskid > 0);
|
||||
UNUSED(taskid);
|
||||
|
||||
sched_unlock();
|
||||
#endif
|
||||
return OK;
|
||||
errout_with_dev:
|
||||
|
|
|
@ -142,8 +142,6 @@ int xx3803_watchdog_initialize(void)
|
|||
|
||||
#if defined(CONFIG_XX3803_WDG_THREAD)
|
||||
|
||||
sched_lock();
|
||||
|
||||
/* Spawn wdog daemon thread */
|
||||
|
||||
int taskid = kthread_create(CONFIG_XX3803_WDG_THREAD_NAME,
|
||||
|
@ -154,8 +152,6 @@ int xx3803_watchdog_initialize(void)
|
|||
DEBUGASSERT(taskid > 0);
|
||||
UNUSED(taskid);
|
||||
|
||||
sched_unlock();
|
||||
|
||||
#endif /* CONFIG_XX3803_WDG_THREAD */
|
||||
|
||||
return OK;
|
||||
|
|
|
@ -142,8 +142,6 @@ int s698pm_dkit_watchdog_initialize(void)
|
|||
|
||||
#if defined(CONFIG_S698PM_DKIT_WDG_THREAD)
|
||||
|
||||
sched_lock();
|
||||
|
||||
/* Spawn wdog daemon thread */
|
||||
|
||||
int taskid = kthread_create(CONFIG_S698PM_DKIT_WDG_THREAD_NAME,
|
||||
|
@ -154,8 +152,6 @@ int s698pm_dkit_watchdog_initialize(void)
|
|||
DEBUGASSERT(taskid > 0);
|
||||
UNUSED(taskid);
|
||||
|
||||
sched_unlock();
|
||||
|
||||
#endif /* CONFIG_S698PM_DKIT_WDG_THREAD */
|
||||
|
||||
return OK;
|
||||
|
|
Loading…
Reference in New Issue