Skip to content
Permalink
Browse files

kernel: idle: exclude no-op funcs from coverage

These get overridden anyway.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie authored and nashif committed Jun 12, 2019
1 parent 682a53d commit 676b1ae93a296b25415099d1503432b61c955ffb
Showing with 5 additions and 0 deletions.
  1. +5 −0 kernel/idle.c
@@ -26,6 +26,10 @@
*/
unsigned char sys_pm_idle_exit_notify;


/* LCOV_EXCL_START
* These are almost certainly overidden and in any event do nothing
*/
#if defined(CONFIG_SYS_POWER_SLEEP_STATES)
void __attribute__((weak)) _sys_resume(void)
{
@@ -37,6 +41,7 @@ void __attribute__((weak)) _sys_resume_from_deep_sleep(void)
{
}
#endif
/* LCOV_EXCL_STOP */

#endif /* CONFIG_SYS_POWER_MANAGEMENT */

0 comments on commit 676b1ae

Please sign in to comment.
You can’t perform that action at this time.