Merge pull request #224 from fourcolor/master

Fix typo
This commit is contained in:
Jim Huang 2023-09-03 15:33:52 +08:00 committed by GitHub
commit 0ad840deec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2087,7 +2087,7 @@ pr_info("fastpath 2\n");
If the key is enabled at runtime by calling \cpp|static_branch_enable(&fkey)|, the fastpath will be patched with an unconditional jump instruction to the slowpath code \cpp|pr_alert|, so the branch will always be taken until the key is disabled again. If the key is enabled at runtime by calling \cpp|static_branch_enable(&fkey)|, the fastpath will be patched with an unconditional jump instruction to the slowpath code \cpp|pr_alert|, so the branch will always be taken until the key is disabled again.
The following kernel module derived from \verb|chardev.c|, demostrates how the static key works. The following kernel module derived from \verb|chardev.c|, demonstrates how the static key works.
\samplec{examples/static_key.c} \samplec{examples/static_key.c}