-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60caa30
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.
quantum uses min_cycles, but what is max_cycles for?
A quick grep tells me nothing uses it.
60caa30
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 think it’s unused at the moment. IIRC at one point it had to do with anticipating how much a device could overshoot the number of cycles it was given. It doesn’t really work for that when read/write handlers can burn additional cycles.
60caa30
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.
There used to be an assert if max_cycles was exceeded. Apart from catching programming errors, what was the point?
60caa30
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.
Giving an indication of how much a device could overshoot its timeslice by – e.g. if max cycles is 4 and the device is told to execute for 7 cycles, it could execute for up to 7 + 4 - 1 = 10 cycles. But it doesn’t work properly because read/write handlers can burn additional cycles.