-
Notifications
You must be signed in to change notification settings - Fork 2k
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
core: hwtimer: use disable/restoreIRQ #1883
Conversation
if (!inISR()) { | ||
dINT(); | ||
state = disableIRQ(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the if (!inISR())
be unnecessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure if it is on all platforms.
I'd say, this is an improvement, removing the if(!inISR()) can be a further optimization. Let's not mix both and see if the restoreIRQ is fine, then remove the inISR()s at a later time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine with me.
|
@kaspar030 on which platform, application? |
@LudwigOrtmann Sorry, I was tired and wanted to comment the vtimer bug. This one is fine in all tests. |
ACK and go I guess? |
core: hwtimer: use disable/restoreIRQ
Second ACK was missing for core change. |
This PR creates warning. Fixed in #1901. |
hwtimer still uses dINT/eINT(). This PR makes it use disableIRQ/restoreIRQ instead.