From b8ac94b57adc32d9f49be2982f182a69c5d5d413 Mon Sep 17 00:00:00 2001 From: Rostislav Lisovy Date: Mon, 5 Jan 2015 17:28:59 +0100 Subject: [PATCH] lwip: Remove pbufFreed semaphore The idea was to be blocked on this semaphore if there is not enough PBUFs to be allocated. This however does not work. Remove it. Signed-off-by: Rostislav Lisovy --- src/core/pbuf.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 87b0feb0..1e5e53b1 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -581,12 +581,6 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment) return 0; } -/*** RPP - Notificating semaphore that we got free pbuf (FreeRTOS semaphore) ***/ -#if !NO_SYS -extern xSemaphoreHandle pbufFreed; -#endif -/*** end driver notification declare ***/ - /** * Dereference a pbuf chain or queue and deallocate any no-longer-used * pbufs at the head of this chain or queue. @@ -695,11 +689,6 @@ pbuf_free(struct pbuf *p) } } PERF_STOP("pbuf_free"); - /*** RPP - Notify driver that we got free space for it (FreeRTOS semaphore) ***/ -#if !NO_SYS - if (type == PBUF_POOL)xSemaphoreGive(pbufFreed); -#endif - /*** end driver notification ***/ /* return number of de-allocated pbufs */ return count; } -- 2.39.2