Skip to content

Commit

Permalink
Documentation: teaching: lectures: smp: align bullet lists
Browse files Browse the repository at this point in the history
Fixes the following warnings:

 Documentation/teaching/lectures/smp.rst:210: WARNING: Bullet list ends without a blank line; unexpected unindent.
 Documentation/teaching/lectures/smp.rst:771: WARNING: Bullet list ends without a blank line; unexpected unindent.
 Documentation/teaching/lectures/smp.rst:777: WARNING: Bullet list ends without a blank line; unexpected unindent.

Signed-off-by: Octavian Purdila <tavi@cs.pub.ro>
  • Loading branch information
tavip committed Mar 30, 2020
1 parent 98debdc commit d5d0dd8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Documentation/teaching/lectures/smp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ to access atomic operations:
* integer based:

* simple: :c:func:`atomic_inc`, :c:func:`atomic_dec`,
:c:func:`atomic_add`, :c:func:`atomic_sub`
:c:func:`atomic_add`, :c:func:`atomic_sub`

* conditional: :c:func:`atomic_dec_and_test`, :c:func:`atomic_sub_and_test`

Expand Down Expand Up @@ -767,15 +767,14 @@ work, it is recommended to use dedicated APIs:
:level: 2

* In process context use :c:func:`spin_lock_bh` (which combines
:c:func:`local_bh_disable` and :c:func:`spin_lock`) and
:c:func:`spin_unlock_bh` (which combines :c:func:`spin_unlock` and
:c:func:`local_bh_enable`)

:c:func:`local_bh_disable` and :c:func:`spin_lock`) and
:c:func:`spin_unlock_bh` (which combines :c:func:`spin_unlock` and
:c:func:`local_bh_enable`)

* In bottom half context use: :c:func:`spin_lock` and
:c:func:`spin_unlock` (or :c:func:`spin_lock_irqsave` and
:c:func:`spin_lock_irqrestore` if sharing data with interrupt
handlers)
:c:func:`spin_unlock` (or :c:func:`spin_lock_irqsave` and
:c:func:`spin_lock_irqrestore` if sharing data with interrupt
handlers)


As mentioned before, another source of concurrency in the Linux kernel
Expand Down

0 comments on commit d5d0dd8

Please sign in to comment.