power_mgmt: Make names consistent with new RFC

Changed names of Kconfig flags, variables, functions, files and
return codes consistent with names used in the RFC. Updated
relevant comments to match the changes.

Origin: Original
Change-Id: Ie7941032d7ad7af61fc02928f74538745e7966e8
Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Ramesh Thomas 2016-03-18 16:43:40 -07:00 committed by Anas Nashif
commit bb19e6f82f
39 changed files with 336 additions and 259 deletions

View file

@ -33,7 +33,7 @@
_ASM_FILE_PROLOGUE
GTEXT(_CpuIdleInit)
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
#ifdef CONFIG_SYS_POWER_MANAGEMENT
GTEXT(_NanoIdleValGet)
GTEXT(_NanoIdleValClear)
#endif
@ -62,7 +62,7 @@ SECTION_FUNC(TEXT, _CpuIdleInit)
str r2, [r1]
bx lr
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
#ifdef CONFIG_SYS_POWER_MANAGEMENT
/**
*
@ -101,7 +101,7 @@ SECTION_FUNC(TEXT, _NanoIdleValClear)
str r1, [r0, #__tNANO_idle_OFFSET]
bx lr
#endif /* CONFIG_ADVANCED_POWER_MANAGEMENT */
#endif /* CONFIG_SYS_POWER_MANAGEMENT */
/**
*

View file

@ -69,7 +69,7 @@ SECTION_FUNC(TEXT, _isr_wrapper)
pop {lr}
#endif
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
#ifdef CONFIG_SYS_POWER_MANAGEMENT
/*
* All interrupts are disabled when handling idle wakeup. For tickless
* idle, this ensures that the calculation and programming of the device
@ -90,7 +90,7 @@ SECTION_FUNC(TEXT, _isr_wrapper)
blxne _sys_power_save_idle_exit
cpsie i /* re-enable interrupts (PRIMASK = 0) */
#endif /* CONFIG_ADVANCED_POWER_MANAGEMENT */
#endif
mrs r0, IPSR /* get exception number */
sub r0, r0, #16 /* get IRQ number */

View file

@ -40,9 +40,9 @@
/* ARM-specific tNANO structure member offsets */
GEN_OFFSET_SYM(tNANO, flags);
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
#ifdef CONFIG_SYS_POWER_MANAGEMENT
GEN_OFFSET_SYM(tNANO, idle);
#endif /* CONFIG_ADVANCED_POWER_MANAGEMENT */
#endif
/* ARM-specific struct tcs structure member offsets */