diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-10-12 00:27:55 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-10-13 11:47:00 -0400 |
commit | fb798e3cbafc095f930e2a925b9e0e200395baa4 (patch) | |
tree | 167363f3777fa0e07b255b717cc130cb59cd628f /src | |
parent | 7a265f159a713b06f4d6a42fe3514653a5d263e6 (diff) | |
download | kutter-fb798e3cbafc095f930e2a925b9e0e200395baa4.tar.gz kutter-fb798e3cbafc095f930e2a925b9e0e200395baa4.tar.xz kutter-fb798e3cbafc095f930e2a925b9e0e200395baa4.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |