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

reset FirstUpdate flag on servo after we enter locked state #412

Closed
wants to merge 1 commit into from

Conversation

abulimov
Copy link
Contributor

Summary:
Currently we can step at any point in the future if something unexpected happens.
We never reset the flag, so techically if the servo was reset we could step multiple times!

With this change, once servo is in S2 (locked), we unset the flag. This ensures that we can only step once at the beginning of SPTP lifetime.

As a bonus I've added a log message to make it more clear when we step the clock.

Reviewed By: leoleovich

Differential Revision: D64602914

Summary:
Currently we can step at any point in the future if something unexpected happens.
We never reset the flag, so techically if the servo was reset we could step multiple times!

With this change, once servo is in S2 (locked), we unset the flag. This ensures that we can only step once at the beginning of SPTP lifetime.

As a bonus I've added a log message to make it more clear when we step the clock.

Reviewed By: leoleovich

Differential Revision: D64602914
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 18, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64602914

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 54363d7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants