-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-gen: timer: enhance timer expire scalability
Use stash and pre-allocated memory to store tick_buf index, so timer_expire can find expire tick_buf index with hash function without walk through all tick_buf. Additional overhead is introduced to start and cancel operation. Expire operation cycle cost is constant with more timers. Timer set and cancel operation cycles Base 69 Current 139 Expire operation cycles Timer num. 10 100 1000 Base 37 38 190 Current 40 39 37 Signed-off-by: Tianyu Li <tianyu.li@arm.com>
- Loading branch information
Showing
3 changed files
with
165 additions
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
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
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