From 334f0f54756c86c4c85e196107db725d85bd4a49 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 24 Apr 2012 10:56:36 -0700 Subject: 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 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 --- core/cortex-m/switch.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/cortex-m/switch.S') 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 -- cgit v1.2.1