Fork of alistair23 Linux kernel for reMarkable from https://github.com/alistair23/linux
d75952f993
Currently, there is only spin lock added in imx_sema4_mutex_lock(),but sema4 driver assume any mutex should be handled one by one and complain when mutex locked once again before unlocked. Hence, if another lock happens indeed after the last imx_sema4_mutex_lock(),the complains "imx_sema4_ mutex_lock 135 already locked" would come out over again and again as below. So delay lock released into imx_sema4_mutex_unlock() to elimate such race contition. Thread1: Thread2: .... .... ------------------------------------------ imx_sema4_mutex_lock ---->grabbed->|imx_sema4_mutex_lock | |"imx_sema4_mutex_lock 135 already locked"| ------------------------------------------ imx_sema4_mutex_unlock imx_sema4_mutex_unlock .... ..... Signed-off-by: Robin Gong <yibin.gong@nxp.com> Reviewed-by: Anson Huang <anson.huang@nxp.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> (cherry picked from commit 362fdbb91f1c2e386adc6147c07f714be6134907) |
||
---|---|---|
Documentation | ||
LICENSES | ||
arch | ||
block | ||
certs | ||
crypto | ||
drivers | ||
fs | ||
include | ||
init | ||
ipc | ||
kernel | ||
lib | ||
mm | ||
net | ||
samples | ||
scripts | ||
security | ||
sound | ||
tools | ||
usr | ||
virt | ||
.clang-format | ||
.cocciconfig | ||
.get_maintainer.ignore | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
COPYING | ||
CREDITS | ||
Kbuild | ||
Kconfig | ||
MAINTAINERS | ||
Makefile | ||
README |
README
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. 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.