Skip to content
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

Periodically wake up log process thread consume more power #19982

Closed
wentongwu opened this issue Oct 21, 2019 · 1 comment
Closed

Periodically wake up log process thread consume more power #19982

wentongwu opened this issue Oct 21, 2019 · 1 comment
Assignees
Labels
area: Logging area: Power Management bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Milestone

Comments

@wentongwu
Copy link
Contributor

Describe the bug
Periodically wake up log process thread consume more power if system
already in sleep or deep sleep state.

Expected behavior
log process thread shouldn't wake up system if no pending log message.

@wentongwu wentongwu added bug The issue is a bug, or the PR is fixing a bug area: Power Management area: Logging labels Oct 21, 2019
@wentongwu wentongwu self-assigned this Oct 21, 2019
wentongwu added a commit to wentongwu/zephyr that referenced this issue Oct 21, 2019
Periodically wake up log process thread consume more power if system
already in sleep or deep sleep state. With the help of added logging
timer and semaphore, log process thread is woken up only when there
is logging message.

Fixes: zephyrproject-rtos#19982.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
@dleach02 dleach02 added this to the 1.14.2 milestone Oct 22, 2019
@dleach02 dleach02 added the priority: medium Medium impact/importance bug label Oct 22, 2019
nashif pushed a commit that referenced this issue Oct 29, 2019
Periodically wake up log process thread consume more power if system
already in sleep or deep sleep state. With the help of added logging
timer and semaphore, log process thread is woken up only when there
is logging message.

Fixes: #19982.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
@wentongwu
Copy link
Contributor Author

patch has been merged, so close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging 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

2 participants