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

stop of (last) virtual timer does not stop physical timer immediately #396

Open
miri-in opened this issue Mar 1, 2017 · 3 comments
Open
Assignees
Labels

Comments

@miri-in
Copy link
Contributor

miri-in commented Mar 1, 2017

Consider an application where the last virtual timer is going to
fire at time t. When this timer is stopped at time t' < t, e.g., because of an
external event, then the underlying hardware timer remains active for time t - t'.
The reason is that in VirtualizeTimerC.nc, line 164, the command Timer.stop
only sets the isrunning-flag, but does not post updateFromTimer().

However, if the power management would be able to reach a better power state if
the hardware timer is inactive (e.g., in an application where the following wakeup is initiated via an asynchronous interrupt), it could be advantageous to post the update task from command Timer.stop.

@cire831
Copy link
Member

cire831 commented Mar 1, 2017

that is correct. good find. I'll fix it.

@cire831 cire831 self-assigned this Mar 1, 2017
@cire831 cire831 added the bug label Mar 1, 2017
@ytlw
Copy link
Contributor

ytlw commented Dec 12, 2018

has it been fixed?

@cire831
Copy link
Member

cire831 commented Dec 14, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants