mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Constantly allocating and freeing all of the data structures associated with atomic commits adds up and incurs a lot of latency not only when allocating, but also when freeing. Since we know what the maximum number of CRTCs, planes, and connectors is, we can skip the constant allocation- and-free for the same structures and instead just recycle them via a lock- less list. This also moves the commit cleanup so that it comes after CRTC waiters are woken up, allowing the ioctl to proceed without waiting around for some housekeeping to finish. Since it's difficult to audit which parameters, if any, could exceed the defined maximums in the msm_kms driver, dynamic allocations are retained as a fallback so that userspace can't craft a malicious ioctl that results in buffer overflows. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: azrim <mirzaspc@gmail.com>
…
Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Please notice that there are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF. In order to build the documentation, use ``make htmldocs`` or ``make pdfdocs``. There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation. See Documentation/00-INDEX for a list of what is contained in each file. Please read the Documentation/process/changes.rst file, as it contains the requirements for building and running the kernel, and information about the problems which may result by upgrading your kernel.
Description
Languages
C
98.1%
Assembly
1.2%
Makefile
0.3%