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:
Sebastian Huber
2017-08-04 14:32:19 +02:00
parent cf447b951a
commit a85d90007e
2 changed files with 17 additions and 3 deletions

View File

@@ -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