diff options
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index fa5585f95d..b8bb7419b9 100644 --- a/include/config.h +++ b/include/config.h @@ -1050,6 +1050,7 @@ #define CONFIG_CMD_SYSINFO #define CONFIG_CMD_SYSJUMP #define CONFIG_CMD_SYSLOCK +#undef CONFIG_CMD_TASK_RESET #undef CONFIG_CMD_TASKREADY #define CONFIG_CMD_TEMP_SENSOR #define CONFIG_CMD_TIMERINFO @@ -2961,6 +2962,27 @@ #undef CONFIG_CTS_TASK_LIST /* + * List of tasks that support reset. Tasks listed here must also be included in + * CONFIG_TASK_LIST. + * + * For each task, use macro ENABLE_RESET(n) to enable resets. The parameter n + * must match the value passed to TASK_{ALWAYS,NOTEST} in CONFIG_TASK_LIST. + * + * Tasks that enable resets *must* call task_reset_cleanup() once at the + * beginning of their main function, and perform task-specific cleanup if + * necessary. + * + * By default, tasks can be reset at any time. To change this behavior, call + * task_disable_resets() immediately after task_reset_cleanup(), and then enable + * resets where appropriate. + * + * Tasks that predominantly have resets disabled are expected to periodically + * enable resets, and should always ensure to do so before waiting for long + * periods (eg when waiting for an event to process). + */ +#undef CONFIG_TASK_RESET_LIST + +/* * Enable task profiling. * * Boards may #undef this to reduce image size and RAM usage. @@ -4209,4 +4231,3 @@ #endif /* CONFIG_DPTF_MULTI_PROFILE && !CONFIG_DPTF */ #endif /* __CROS_EC_CONFIG_H */ - |