mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 21:34:25 +08:00
Optimize callout handline via static timer wheel
The number of callouts is a compile-time constant in libbsd. Use this in struct callout_cpu and avoid dynamic allocation of tables. This signficantly reduces the count of load instructions in the callout handling.
This commit is contained in:
@@ -472,8 +472,6 @@
|
||||
#define callout_schedule_on _bsd_callout_schedule_on
|
||||
#define _callout_stop_safe _bsd__callout_stop_safe
|
||||
#define callout_when _bsd_callout_when
|
||||
#define callwheelmask _bsd_callwheelmask
|
||||
#define callwheelsize _bsd_callwheelsize
|
||||
#define camellia_decrypt _bsd_camellia_decrypt
|
||||
#define camellia_decrypt128 _bsd_camellia_decrypt128
|
||||
#define camellia_decrypt256 _bsd_camellia_decrypt256
|
||||
|
Reference in New Issue
Block a user