diff options
author | Andrew Murray <andrew.murray@arm.com> | 2018-10-08 14:15:15 +0100 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2018-10-12 11:35:47 -0600 |
commit | 44280690ced5dacd3004d4966ef9b15f940f34e0 (patch) | |
tree | 8d4a42b829b48e74be0301ebf9fcf1c761a9a066 /lib | |
parent | 0c6c987f3706fedff42eee5384c7ede8a910c4ed (diff) | |
download | linux-44280690ced5dacd3004d4966ef9b15f940f34e0.tar.gz linux-44280690ced5dacd3004d4966ef9b15f940f34e0.tar.bz2 linux-44280690ced5dacd3004d4966ef9b15f940f34e0.zip |
Documentation: preempt-locking: Use better example
The existing wording implies that the use of spin_unlock whilst irqs are
disabled might trigger a reschedule. However the preemptible() test in
preempt_schedule will prevent a reschedule if irqs are disabled.
Lets improve the clarity of this wording to change the example from
spin_unlock to cond_resched() and cond_resched_lock() as these are
functions that will trigger a reschedule if the preempt count is 0 without
testing that irqs are disabled.
Also remove the 'Last Updated' line as this is not up to date and better
tracked via GIT.
Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions