From fb798e3cbafc095f930e2a925b9e0e200395baa4 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 12 Oct 2018 00:27:55 -0400 Subject: [PATCH] sched: Force sched_try_shutdown to be inlined If sched_try_shutdown() is not inlined into timer_dispatch_many() it can have a significant impact on benchmarks. (Even though the function isn't called in practice, the call causes gcc to organize the function differently.) Signed-off-by: Kevin O'Connor --- src/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sched.c b/src/sched.c index 801c45f2..f8ddb5d7 100644 --- a/src/sched.c +++ b/src/sched.c @@ -304,7 +304,7 @@ sched_report_shutdown(void) } // Shutdown the machine if not already in the process of shutting down -void +void __always_inline sched_try_shutdown(uint_fast8_t reason) { if (!shutdown_status)