summaryrefslogtreecommitdiff
path: root/core/cortex-m/switch.S
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-24 10:56:36 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-25 09:24:05 -0700
commit334f0f54756c86c4c85e196107db725d85bd4a49 (patch)
tree4f54538e04c00944109bfc977418c6ef291d3d7a /core/cortex-m/switch.S
parent5774ebbd78ea78f04cc89e57e1d56f45c990af0b (diff)
downloadchrome-ec-334f0f54756c86c4c85e196107db725d85bd4a49.tar.gz
Only chain from interrupt to svc_handler if an event was set.
(Or, if profiling is enabled.) Also, track the number of task switches if profiling is enabled. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:9274 TEST=taskinfo Also test by commenting out CONFIG_TASK_PROFILING in board.h; code should still compile and run. Change-Id: Ib3dbce74b6ccfba2bbe18c7309136412c30f364e
Diffstat (limited to 'core/cortex-m/switch.S')
-rw-r--r--core/cortex-m/switch.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/switch.S b/core/cortex-m/switch.S
index ac045bee02..1f94c15292 100644
--- a/core/cortex-m/switch.S
+++ b/core/cortex-m/switch.S
@@ -42,7 +42,7 @@ __switchto:
bx lr @ return from exception
/**
- * Start the task scheduling. r0 is a pointer to need_resched, which is
+ * Start the task scheduling. r0 is a pointer to task_stack_ready, which is
* set to 1 after the task stack is set up.
*/
.global __task_start