Skip to content

Commit

Permalink
cpu/esp32: module malloc_thread_safe not needed any longer
Browse files Browse the repository at this point in the history
With the improvements of the locking mechanism, thread safety of malloc/realloc/calloc/free is guaranteed. Module malloc_thread_safe is not needed any longer.
  • Loading branch information
gschorcht committed Aug 31, 2022
1 parent fbef844 commit ca2372d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion cpu/esp32/Kconfig.esp32
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ config CPU_FAM_ESP32

select PACKAGE_ESP32_SDK if TEST_KCONFIG

select MODULE_MALLOC_THREAD_SAFE if !MODULE_ESP_IDF_HEAP && TEST_KCONFIG
select MODULE_PERIPH_RTT if HAS_PERIPH_RTT && MODULE_PM_LAYERED
select MODULE_PS if MODULE_SHELL
select MODULE_PTHREAD if MODULE_CPP
Expand Down
1 change: 0 additions & 1 deletion cpu/esp32/Kconfig.esp32c3
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ config CPU_FAM_ESP32C3

select PACKAGE_ESP32_SDK if TEST_KCONFIG

select MODULE_MALLOC_THREAD_SAFE if !MODULE_ESP_IDF_HEAP && TEST_KCONFIG
select MODULE_PERIPH_RTT if HAS_PERIPH_RTT && MODULE_PM_LAYERED
select MODULE_PS if MODULE_SHELL
select MODULE_PTHREAD if MODULE_CPP
Expand Down
1 change: 0 additions & 1 deletion cpu/esp32/Kconfig.esp32s2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ config CPU_FAM_ESP32S2

select PACKAGE_ESP32_SDK if TEST_KCONFIG

select MODULE_MALLOC_THREAD_SAFE if !MODULE_ESP_IDF_HEAP && TEST_KCONFIG
select MODULE_PERIPH_RTT if HAS_PERIPH_RTT && MODULE_PM_LAYERED
select MODULE_PS if MODULE_SHELL
select MODULE_PTHREAD if MODULE_CPP
Expand Down
1 change: 0 additions & 1 deletion cpu/esp32/Kconfig.esp32s3
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ config CPU_FAM_ESP32S3

select PACKAGE_ESP32_SDK if TEST_KCONFIG

select MODULE_MALLOC_THREAD_SAFE if !MODULE_ESP_IDF_HEAP && TEST_KCONFIG
select MODULE_PERIPH_RTT if HAS_PERIPH_RTT && MODULE_PM_LAYERED
select MODULE_PS if MODULE_SHELL
select MODULE_PTHREAD if MODULE_CPP
Expand Down
2 changes: 0 additions & 2 deletions cpu/esp32/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ ifneq (,$(filter esp_idf_heap,$(USEMODULE)))
# the implementations of TLSF with the exception of heap poisoning, which
# is not configured.
USEPKG += tlsf
else
USEMODULE += malloc_thread_safe
endif

ifneq (,$(filter mtd,$(USEMODULE)))
Expand Down

0 comments on commit ca2372d

Please sign in to comment.