projects
/
wrapfs-5.15.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3254a1f
)
clk: Mark 'all_lists' as const
author
Stephen Boyd
<sboyd@kernel.org>
Thu, 17 Feb 2022 22:05:53 +0000
(14:05 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:05:26 +0000
(17:05 +0200)
[ Upstream commit
75061a6ff49ba3482c6319ded0c26e6a526b0967
]
This list array doesn't change at runtime. Mark it const to move to RO
memory.
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link:
https://lore.kernel.org/r/20220217220554.2711696-2-sboyd@kernel.org
Stable-dep-of:
e581cf5d2162
("clk: Get runtime PM before walking tree during disable_unused")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index acbe917cbe775e86b41d7c8bf9320cdc90d01605..0d93537d46c349f488de241e843f53e39b23d5fb 100644
(file)
--- a/
drivers/clk/clk.c
+++ b/
drivers/clk/clk.c
@@
-37,7
+37,7
@@
static HLIST_HEAD(clk_root_list);
static HLIST_HEAD(clk_orphan_list);
static LIST_HEAD(clk_notifier_list);
-static struct hlist_head *all_lists[] = {
+static
const
struct hlist_head *all_lists[] = {
&clk_root_list,
&clk_orphan_list,
NULL,
@@
-4104,7
+4104,7
@@
static void clk_core_evict_parent_cache_subtree(struct clk_core *root,
/* Remove this clk from all parent caches */
static void clk_core_evict_parent_cache(struct clk_core *core)
{
- struct hlist_head **lists;
+
const
struct hlist_head **lists;
struct clk_core *root;
lockdep_assert_held(&prepare_lock);