From a85d90007eaf6756eda00af1a9d0d15621b52eec Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 4 Aug 2017 14:32:19 +0200 Subject: 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. --- rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h') diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h index 3c0b8daf..3bba4492 100644 --- a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h +++ b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h @@ -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 -- cgit v1.2.3