Skip to content

Commit

Permalink
Documentation: devicetree: changesets do locking on their own meanwhile
Browse files Browse the repository at this point in the history
Since commit 1832237 ("drivers/of: Export OF changeset functions"),
the mentioned functions do all necessary locking.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Fixes: 1832237 ("drivers/of: Export OF changeset functions")
Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
Wolfram Sang authored and Rob Herring committed Aug 30, 2016
1 parent fa8410b commit 63b77d6
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions Documentation/devicetree/changesets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,11 @@ a set of changes. No changes to the active tree are made at this point.
All the change operations are recorded in the of_changeset 'entries'
list.

3. mutex_lock(of_mutex) - starts a changeset; The global of_mutex
ensures there can only be one editor at a time.

4. of_changeset_apply() - Apply the changes to the tree. Either the
3. of_changeset_apply() - Apply the changes to the tree. Either the
entire changeset will get applied, or if there is an error the tree will
be restored to the previous state

5. mutex_unlock(of_mutex) - All operations complete, release the mutex
be restored to the previous state. The core ensures proper serialization
through locking. An unlocked version __of_changeset_apply is available,
if needed.

If a successfully applied changeset needs to be removed, it can be done
with the following sequence.

1. mutex_lock(of_mutex)

2. of_changeset_revert()

3. mutex_unlock(of_mutex)
with of_changeset_revert().

0 comments on commit 63b77d6

Please sign in to comment.