Revert "sem: remove limitation of irq context when do sem_trywait"

This reverts commit 7c547b3ebd.
This commit is contained in:
ligd
2022-01-28 21:29:16 +08:00
committed by Xiang Xiao
parent 1c2c0e4707
commit b316611ef0
2 changed files with 0 additions and 6 deletions
-4
View File
@@ -80,13 +80,9 @@ bool mm_takesemaphore(FAR struct mm_heap_s *heap)
if (up_interrupt_context())
{
#ifdef CONFIG_DEBUG_MM
return _SEM_TRYWAIT(&heap->mm_semaphore) >= 0;
#else
/* Can't take semaphore in the interrupt handler */
return false;
#endif
}
else
#endif