Skip to content

Enabling SYS_POWER_MANAGEMENT results in a linker error. #11046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mnkp opened this issue Nov 2, 2018 · 0 comments
Closed

Enabling SYS_POWER_MANAGEMENT results in a linker error. #11046

mnkp opened this issue Nov 2, 2018 · 0 comments
Assignees
Labels
area: Power Management bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@mnkp
Copy link
Member

mnkp commented Nov 2, 2018

When SYS_POWER_MANAGEMENT Kconfig option is enabled via menuconfig for hello_world sample application on any of the ARM boards (and likely on others) the linker will generate the following error:

zephyr/kernel/libkernel.a(idle.c.obj): In function `_sys_power_save_idle_exit':
zephyr/kernel/idle.c:115: undefined reference to `z_clock_idle_exit'
collect2: error: ld returned 1 exit status

Zephyr's Power Management documentation is ambiguous on the issue however, enabling the power management system seems to makes sense only if kernel operates in Tickless Idle mode. That's also how the source code was written. The z_clock_idle_exit function is compiled only if TICKLESS_IDLE Kconfig option is enabled.

To ensure the compilation is successful SYS_POWER_MANAGEMENT should select TICKLESS_IDLE Kconfig option.

Also Zephyr's "Power Management" documentation should be updated to clearly state that any of Zephyr's power management features works only in Tickless Idle mode.

@mnkp mnkp added bug The issue is a bug, or the PR is fixing a bug area: Power Management labels Nov 2, 2018
@galak galak added the priority: medium Medium impact/importance bug label Nov 20, 2018
mnkp added a commit to mnkp/zephyr that referenced this issue Nov 21, 2018
System Power Management is only supported in Tickless Idle mode.
This patch modifies Kconfig dependencies to ensure System Power
Management option selects Tickless Idle one.

Fixes: zephyrproject-rtos#11046

Signed-off-by: Piotr Mienkowski <[email protected]>
nashif pushed a commit that referenced this issue Nov 22, 2018
System Power Management is only supported in Tickless Idle mode.
This patch modifies Kconfig dependencies to ensure System Power
Management option selects Tickless Idle one.

Fixes: #11046

Signed-off-by: Piotr Mienkowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Power Management bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants