commit | 0f773a894ab15c589ac794c2d34ca6ba9b5335c9 | [log] [tgz] |
---|---|---|
author | Andy Lutomirski <luto@kernel.org> | Mon Oct 05 12:53:35 2015 -0700 |
committer | Andy Lutomirski <luto@kernel.org> | Mon Oct 05 17:31:48 2015 -0700 |
tree | 94588fbfe9bcc48911adb6848f7fb6bf16442d11 | |
parent | 9fc53eda4a5b924070952f12fa4ae3e477640a07 [diff] |
x86/entry: Split and inline syscall_return_slowpath GCC is unable to properly optimize functions that have a very short likely case and a longer and register-heavier cold part -- it fails to sink all of the register saving and stack frame setup code into the unlikely part. Help it out with syscall_return_slowpath by splitting it into two parts and inline the hot part. Saves 6 cycles for compat syscalls. Signed-off-by: Andy Lutomirski <luto@kernel.org>