整理任务使用的cpu

新增配置:

  CONFIG_TQ_NETWORK_TASK_CORE=0
  CONFIG_TQ_LOCAL_TASK_CORE=1

  网络类任务默认固定到 Core 0:

  cp_ws_wait
  cp_wifi_state
  cp_fortune
  mm_autostart
  mm_watchdog
  mm_ws_ordered
  mm_ws_stop
  lan_http

  本地类任务默认固定到 Core 1:

  cp_model_cmd
  cp_direction
  cp_lcd_render
  cp_task_monitor
  cp_system_event
  cp_key_input
  factory_cli
  mm_local_evt

  已有音频任务保持现有配置:

  CONFIG_MULTIMODAL_AUDIO_TASK_CORE=1
This commit is contained in:
CSBOOK\44744
2026-06-25 13:54:54 +08:00
parent ec2ad4dfc9
commit 56ac1cd5d6
12 changed files with 185 additions and 60 deletions
+16
View File
@@ -72,6 +72,22 @@ menu "Example Configuration"
Optional boot sound file path for the voice prompt backend.
Leave empty to use the semantic connecting prompt fallback.
config TQ_NETWORK_TASK_CORE
int "Network task core (-1 for no affinity)"
default 0
range -1 1
help
Core used for control-plane and platform network workers such
as WebSocket wait, Wi-Fi state, LAN HTTP, and fortune refresh.
config TQ_LOCAL_TASK_CORE
int "Local task core (-1 for no affinity)"
default 1
range -1 1
help
Core used for local device workers such as LCD rendering,
key input, system events, direction console, and diagnostics.
config TQ_TASK_MONITOR_ENABLE
bool "Enable periodic FreeRTOS task monitor log"
default y