diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-31 11:12:57 -0700 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-11-09 06:36:32 -0800 |
| commit | 4ede8c06a6b1bb846fe7e770d4a1934fad623601 (patch) | |
| tree | 3109d3d6acec7bdd22d8a9f29cdc7f1c7cd1fe27 /Documentation/Changes | |
| parent | 0829ab05e113d5b52dfa4c8de94eb7bfffdf72bb (diff) | |
| download | kernel_samsung_smdk4412-4ede8c06a6b1bb846fe7e770d4a1934fad623601.tar.gz kernel_samsung_smdk4412-4ede8c06a6b1bb846fe7e770d4a1934fad623601.tar.bz2 kernel_samsung_smdk4412-4ede8c06a6b1bb846fe7e770d4a1934fad623601.zip | |
selinux: inline avc_audit() and avc_has_perm_noaudit() into caller
Now that all the slow-path code is gone from these functions, we can
inline them into the main caller - avc_has_perm_flags().
Now the compiler can see that 'avc' is allocated on the stack for this
case, which helps register pressure a bit. It also actually shrinks the
total stack frame, because the stack frame that avc_has_perm_flags()
always needed (for that 'avc' allocation) is now sufficient for the
inlined functions too.
Inlining isn't bad - but mindless inlining of cold code (see the
previous commit) is.
Change-Id: Id07f865367d7fd542e2db7e554e7335107d991b6
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/Changes')
0 files changed, 0 insertions, 0 deletions
