Add support for profiling sleep events in nanokernel.

This patch remove the dependency of the ADVANCE_POWER_MANAGEMENT
for profiling sleep events that was supported only for microkernel.
Allowing us to also use this feature in nanokernel-only systems.

Change-Id: I1761eb6c4d72f477b419dfca5dc152b0fb69ee27
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-12-02 10:13:14 -06:00 committed by Anas Nashif
commit 8885d093c4
4 changed files with 30 additions and 11 deletions

View file

@ -64,6 +64,12 @@ SECTION_FUNC(TEXT, _isr_wrapper)
pop {lr}
#endif
#ifdef CONFIG_KERNEL_EVENT_LOGGER_SLEEP
push {lr}
bl _sys_k_event_logger_exit_sleep
pop {lr}
#endif
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
/*
* All interrupts are disabled when handling idle wakeup. For tickless