Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msm: camera: Optimize memory allocation for small buffers
Try to use an on-stack buffer for memory allocations that are small enough to not warrant a dynamic allocation, and eliminate dynamic memory allocation entirely in msm_camera_cci_i2c_read_seq. This improves performance by skipping latency-prone dynamic memory allocation when it isn't needed. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
- Loading branch information
1 parent
64bc351
commit 9b963ad
Showing
2 changed files
with
47 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters