mirror of
https://github.com/apache/nuttx.git
synced 2025-12-10 12:14:36 +08:00
esp32: Retire XTENSA_IMEM_PROCFS
Now /proc/meminfo has the equivalent.
This commit is contained in:
committed by
David Sidrane
parent
7bb849535c
commit
aed24f1255
@@ -55,8 +55,6 @@
|
||||
#include <sys/errno.h>
|
||||
#include <nuttx/himem/himem.h>
|
||||
|
||||
#include "esp32_procfs_imm.h"
|
||||
|
||||
#include "esp32_wlan.h"
|
||||
#include "esp32_spiflash.h"
|
||||
#include "esp32_partition.h"
|
||||
@@ -137,21 +135,6 @@ int esp32_bringup(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_XTENSA_IMEM_PROCFS
|
||||
/* Register the internal memory procfs entry.
|
||||
* This must be done before the procfs is mounted.
|
||||
*/
|
||||
|
||||
ret = imm_procfs_register();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR,
|
||||
"ERROR: Failed to register internal memory to PROCFS: %d\n",
|
||||
ret);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_AES_ACCELERATOR
|
||||
ret = esp32_aes_init();
|
||||
if (ret < 0)
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
#include <sys/errno.h>
|
||||
#include <nuttx/himem/himem.h>
|
||||
|
||||
#include "esp32_procfs_imm.h"
|
||||
|
||||
#include "esp32_wlan.h"
|
||||
#include "esp32_spiflash.h"
|
||||
#include "esp32_partition.h"
|
||||
@@ -118,21 +116,6 @@ int esp32_bringup(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_XTENSA_IMEM_PROCFS
|
||||
/* Register the internal memory procfs entry.
|
||||
* This must be done before the procfs is mounted.
|
||||
*/
|
||||
|
||||
ret = imm_procfs_register();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR,
|
||||
"ERROR: Failed to register internal memory to PROCFS: %d\n",
|
||||
ret);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ESP32_SPIRAM) && \
|
||||
defined(CONFIG_ESP32_SPIRAM_BANKSWITCH_ENABLE)
|
||||
ret = esp_himem_init();
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
#include <sys/errno.h>
|
||||
#include <nuttx/himem/himem.h>
|
||||
|
||||
#include "esp32_procfs_imm.h"
|
||||
|
||||
#include "esp32_wlan.h"
|
||||
#include "esp32_spiflash.h"
|
||||
#include "esp32_partition.h"
|
||||
@@ -118,21 +116,6 @@ int esp32_bringup(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef CONFIG_XTENSA_IMEM_PROCFS
|
||||
/* Register the internal memory procfs entry.
|
||||
* This must be done before the procfs is mounted.
|
||||
*/
|
||||
|
||||
ret = imm_procfs_register();
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR,
|
||||
"ERROR: Failed to register internal memory to PROCFS: %d\n",
|
||||
ret);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ESP32_SPIRAM) && \
|
||||
defined(CONFIG_ESP32_SPIRAM_BANKSWITCH_ENABLE)
|
||||
ret = esp_himem_init();
|
||||
|
||||
Reference in New Issue
Block a user