]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
lwip: Remove pbufFreed semaphore
authorRostislav Lisovy <lisovy@gmail.com>
Mon, 5 Jan 2015 16:28:59 +0000 (17:28 +0100)
committerRostislav Lisovy <lisovy@gmail.com>
Mon, 5 Jan 2015 16:50:10 +0000 (17:50 +0100)
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 <lisovy@gmail.com>
src/core/pbuf.c

index 87b0feb093f7f516f6119dc4dc137257d4ccf5a8..1e5e53b12a434e7f5ca333389f6457ab4d2b5431 100644 (file)
@@ -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;
 }