summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_private.h
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2018-07-12 14:00:07 -0700
committerRob Herring <robh@kernel.org>2018-07-16 08:41:32 -0600
commitb9952b5218added5577e4a3443969bc20884cea9 (patch)
treeea6672754a6ec83753a9a3b63bbb3dd0c68ec708 /drivers/of/of_private.h
parenta47c9b3943164453d4f580ea174a6ddcb37554c3 (diff)
downloadblackbird-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.h2
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) {};
OpenPOWER on IntegriCloud