diff options
author | Miles Chen <miles.chen@mediatek.com> | 2019-08-15 07:32:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-08-19 06:57:28 -0400 |
commit | ee050dc83bc326ad5ef8ee93bca344819371e7a5 (patch) | |
tree | f91ada0c383b2df4994e901c98517be772192b81 | |
parent | d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1 (diff) |
lib/stackdepot: Fix outdated comments
Replace "depot_save_stack" with "stack_depot_save" in code comments because
depot_save_stack() was replaced in commit c0cfc337264c ("lib/stackdepot:
Provide functions which operate on plain storage arrays") and removed in
commit 56d8f079c51a ("lib/stackdepot: Remove obsolete functions")
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190815113246.18478-1-miles.chen@mediatek.com
-rw-r--r-- | lib/stackdepot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 66cab785bea0..ed717dd08ff3 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c | |||
@@ -87,7 +87,7 @@ static bool init_stack_slab(void **prealloc) | |||
87 | stack_slabs[depot_index + 1] = *prealloc; | 87 | stack_slabs[depot_index + 1] = *prealloc; |
88 | /* | 88 | /* |
89 | * This smp_store_release pairs with smp_load_acquire() from | 89 | * This smp_store_release pairs with smp_load_acquire() from |
90 | * |next_slab_inited| above and in depot_save_stack(). | 90 | * |next_slab_inited| above and in stack_depot_save(). |
91 | */ | 91 | */ |
92 | smp_store_release(&next_slab_inited, 1); | 92 | smp_store_release(&next_slab_inited, 1); |
93 | } | 93 | } |
@@ -114,7 +114,7 @@ static struct stack_record *depot_alloc_stack(unsigned long *entries, int size, | |||
114 | depot_offset = 0; | 114 | depot_offset = 0; |
115 | /* | 115 | /* |
116 | * smp_store_release() here pairs with smp_load_acquire() from | 116 | * smp_store_release() here pairs with smp_load_acquire() from |
117 | * |next_slab_inited| in depot_save_stack() and | 117 | * |next_slab_inited| in stack_depot_save() and |
118 | * init_stack_slab(). | 118 | * init_stack_slab(). |
119 | */ | 119 | */ |
120 | if (depot_index + 1 < STACK_ALLOC_MAX_SLABS) | 120 | if (depot_index + 1 < STACK_ALLOC_MAX_SLABS) |