mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
7567930cd20f1597bdeec2324f914934c727f104
There is a case, the app may call s_ctrl before device power on, pm_runtime_get will increment usage counter and call Sensor_runtime_resume, but when the s_ctrl function judges that the return value of pm_runtime_get is less than or equal to 0, it returns directly, causing pm_runtime_put not to be executed. so device can't be suspended. pm_runtime_get_if_in_use increment the device's counter when runtime PM status is RPM_ACTIVE and the runtime PM usage counter is nonzero. so used pm_runtime_get_if_in_use can avoid usage counter error. Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I4e61cdefafd82083f2628f67181a6bb2eee50507
…
…
…
…
…
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
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
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%