diff options
author | Frank Rowand <frank.rowand@sony.com> | 2018-07-12 14:00:07 -0700 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-07-16 08:41:32 -0600 |
commit | b9952b5218added5577e4a3443969bc20884cea9 (patch) | |
tree | ea6672754a6ec83753a9a3b63bbb3dd0c68ec708 /drivers/of/of_private.h | |
parent | a47c9b3943164453d4f580ea174a6ddcb37554c3 (diff) | |
download | blackbird-op-linux-b9952b5218added5577e4a3443969bc20884cea9.tar.gz blackbird-op-linux-b9952b5218added5577e4a3443969bc20884cea9.zip |
of: overlay: update phandle cache on overlay apply and remove
A comment in the review of the patch adding the phandle cache said that
the cache would have to be updated when modules are applied and removed.
This patch implements the cache updates.
Fixes: 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()")
Reported-by: Alan Tull <atull@kernel.org>
Suggested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/of_private.h')
-rw-r--r-- | drivers/of/of_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h index 891d780c076a..216175d11d3d 100644 --- a/drivers/of/of_private.h +++ b/drivers/of/of_private.h @@ -79,6 +79,8 @@ int of_resolve_phandles(struct device_node *tree); #if defined(CONFIG_OF_OVERLAY) void of_overlay_mutex_lock(void); void of_overlay_mutex_unlock(void); +int of_free_phandle_cache(void); +void of_populate_phandle_cache(void); #else static inline void of_overlay_mutex_lock(void) {}; static inline void of_overlay_mutex_unlock(void) {}; |