IEEE 802.15.4 MAC: Disable option to select interrupt-level meta data allocator.

This commit is contained in:
Gregory Nutt 2017-07-16 12:53:01 -06:00
parent 4a9ef0225a
commit d639d8857d
2 changed files with 18 additions and 5 deletions

View file

@ -93,7 +93,8 @@ config IEEE802154_IND_PREALLOC
config IEEE802154_IND_IRQRESERVE
int "Reserved pre-allocated meta-data structures"
default 10
default 0
depends on EXPERIMENTAL
---help---
If meta-data structures can be allocated from interrupt handlers,
then this specifies the number of pre-allocatd meta-data structures
@ -110,7 +111,12 @@ config IEEE802154_IND_IRQRESERVE
Non-interrupt logic will also first attempt to allocate from the
general, pre-allocated structure pool. If that fails, it will
dynamically allocate the meta data structure with an additional cost in performance.
dynamically allocate the meta data structure with an additional cost
in performance.
NOTE: Currently marked as experimental and with a default 0 zero
because there are no interrupt level allocations performed by the
current IEEE 802.15.4 MAC code.
config IEEE802154_MACDEV
bool "Character driver for IEEE 802.15.4 MAC layer"

View file

@ -54,14 +54,21 @@
* Pre-processor Definitions
****************************************************************************/
#if !defined(CONFIG_IEEE802154_IND_PREALLOC) || CONFIG_IEEE802154_IND_PREALLOC < 0
/* NOTE: The CONFIG_IEEE802154_IND_IRQRESERVE options is marked as marked
* 'experimental' and with the default 0 zero because there are no interrupt
* level allocations performed by the current IEEE 802.15.4 MAC code.
*/
#if !defined(CONFIG_IEEE802154_IND_PREALLOC) || \
CONFIG_IEEE802154_IND_PREALLOC < 0
# undef CONFIG_IEEE802154_IND_PREALLOC
# define CONFIG_IEEE802154_IND_PREALLOC 20
#endif
#if !defined(CONFIG_IEEE802154_IND_IRQRESERVE) || CONFIG_IEEE802154_IND_IRQRESERVE < 0
#if !defined(CONFIG_IEEE802154_IND_IRQRESERVE) || \
CONFIG_IEEE802154_IND_IRQRESERVE < 0
# undef CONFIG_IEEE802154_IND_IRQRESERVE
# define CONFIG_IEEE802154_IND_IRQRESERVE 10
# define CONFIG_IEEE802154_IND_IRQRESERVE 0
#endif
#if CONFIG_IEEE802154_IND_IRQRESERVE > CONFIG_IEEE802154_IND_PREALLOC