-
Notifications
You must be signed in to change notification settings - Fork 250
-
Notifications
You must be signed in to change notification settings - Fork 250
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
hw core: generic timer driver interface #2347
Comments
If we do the tics-to-us translation with one division and multiplication over the whole argument, like before, we loose microseconds granularity although the timer frequency allows for such granularity. Thus, we treat the most significant half and the least significant half of the tics value separate. Each half is shifted to the best bit position for the translation, then translated, and then shifted back. Ref genodelabs#2347
Previously, the timer class was declared for each platform separately and maintainers would have to take care that the class fullfills the generic interface requirements. Now the interface is documented through a generic timer class that has a platform specific timer member. Fixes genodelabs#2347
@skalk Could you please have a look at these commits. I had some spare time these days and this is what happened ^^ I don't know if they clash with your current base-hw development. If they do, we can also delay them. |
@m-stein: indeed it would be really nice if we delay the re-structuring commit. The Cortex A9 timer fix of course can be applied immediately of course |
If we do the tics-to-us translation with one division and multiplication over the whole argument, like before, we loose microseconds granularity although the timer frequency allows for such granularity. Thus, we treat the most significant half and the least significant half of the tics value separate. Each half is shifted to the best bit position for the translation, then translated, and then shifted back. Ref #2347
Merged 481660e just now. |
Solved a bug in the new kernel timer driver: |
If we do the tics-to-us translation with one division and multiplication over the whole argument, like before, we loose microseconds granularity although the timer frequency allows for such granularity. Thus, we treat the most significant half and the least significant half of the tics value separate. Each half is shifted to the best bit position for the translation, then translated, and then shifted back. Ref #2347
With this, we get rid of platform specific timer interfaces. The new Timer class does the same as the old Clock class and has a generic interface. The old Timer class was merely used by the old Clock class. Also, we get rid of having only one timer instance which we tell with each method call for which CPU it shall be done. Instead now each Cpu object has its own Timer member that knows the CPU it works for. Fixes genodelabs#2347
This commit |
With this, we get rid of platform specific timer interfaces. The new Timer class does the same as the old Clock class and has a generic interface. The old Timer class was merely used by the old Clock class. Also, we get rid of having only one timer instance which we tell with each method call for which CPU it shall be done. Instead now each Cpu object has its own Timer member that knows the CPU it works for. Fixes #2347
Dyslexia--; Ref genodelabs#2347
With this, we get rid of platform specific timer interfaces. The new Timer class does the same as the old Clock class and has a generic interface. The old Timer class was merely used by the old Clock class. Also, we get rid of having only one timer instance which we tell with each method call for which CPU it shall be done. Instead now each Cpu object has its own Timer member that knows the CPU it works for. Also, rename all "tics" to "ticks". Fixes #2347
With this, we get rid of platform specific timer interfaces. The new Timer class does the same as the old Clock class and has a generic interface. The old Timer class was merely used by the old Clock class. Also, we get rid of having only one timer instance which we tell with each method call for which CPU it shall be done. Instead now each Cpu object has its own Timer member that knows the CPU it works for. Also, rename all "tics" to "ticks". Fixes #2347
No description provided.
The text was updated successfully, but these errors were encountered: