summaryrefslogtreecommitdiff
path: root/include/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/task.h')
-rw-r--r--include/task.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/include/task.h b/include/task.h
index 1cc49246b7..6f6136dbbf 100644
--- a/include/task.h
+++ b/include/task.h
@@ -34,8 +34,6 @@
#define TASK_EVENT_DMA_TC BIT(26)
/* ADC interrupt handler event */
#define TASK_EVENT_ADC_DONE BIT(27)
-/* task_reset() that was requested has been completed */
-#define TASK_EVENT_RESET_DONE BIT(28)
/* task_wake() called on task */
#define TASK_EVENT_WAKE BIT(29)
/* Mutex unlocking */
@@ -231,55 +229,6 @@ void task_disable_irq(int irq);
*/
void task_trigger_irq(int irq);
-/*
- * A task that supports resets may call this to indicate that it may be reset
- * at any point between this call and the next call to task_disable_resets().
- *
- * Calling this function will trigger any resets that were requested while
- * resets were disabled.
- *
- * It is not expected for this to be called if resets are already enabled.
- */
-void task_enable_resets(void);
-
-/*
- * A task that supports resets may call this to indicate that it may not be
- * reset until the next call to task_enable_resets(). Any calls to task_reset()
- * during this time will cause a reset request to be queued, and executed
- * the next time task_enable_resets() is called.
- *
- * Must not be called if resets are already disabled.
- */
-void task_disable_resets(void);
-
-/*
- * If the current task was reset, completes the reset operation.
- *
- * Returns a non-zero value if the task was reset; tasks with state outside
- * of the stack should perform any necessary cleanup immediately after calling
- * this function.
- *
- * Tasks that support reset must call this function once at startup before
- * doing anything else.
- *
- * Must only be called once at task startup.
- */
-int task_reset_cleanup(void);
-
-/*
- * Resets the specified task, which must not be the current task,
- * to initial state.
- *
- * Returns EC_SUCCESS, or EC_ERROR_INVAL if the specified task does
- * not support resets.
- *
- * If wait is true, blocks until the task has been reset. Otherwise,
- * returns immediately - in this case the task reset may be delayed until
- * that task can be safely reset. The duration of this delay depends on the
- * task implementation.
- */
-int task_reset(task_id_t id, int wait);
-
/**
* Clear a pending interrupt.
*