summaryrefslogtreecommitdiff
path: root/arch/arc
diff options
context:
space:
mode:
authorwuchi <wuchi.zero@gmail.com>2022-06-11 21:06:34 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-11-15 14:30:39 -0800
commiteabb7f1ace53e127309407b2b5e74e8199e85270 (patch)
treead5ae6094e268a5a620b98a477dc133b5df1e129 /arch/arc
parentf0c4d9fc9cc9462659728d168387191387e903cc (diff)
lib/debugobjects: fix stat count and optimize debug_objects_mem_init
1. Var debug_objects_allocated tracks valid kmem_cache_alloc calls, so track it in debug_objects_replace_static_objects. Do similar things in object_cpu_offline. 2. In debug_objects_mem_init, there is no need to call function cpuhp_setup_state_nocalls when debug_objects_enabled = 0 (out of memory). Link: https://lkml.kernel.org/r/20220611130634.99741-1-wuchi.zero@gmail.com Fixes: 634d61f45d6f ("debugobjects: Percpu pool lookahead freeing/allocation") Fixes: c4b73aabd098 ("debugobjects: Track number of kmem_cache_alloc/kmem_cache_free done") Signed-off-by: wuchi <wuchi.zero@gmail.com> Reviewed-by: Waiman Long <longman@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Christoph Hellwig <hch@lst.de> Cc: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/arc')
0 files changed, 0 insertions, 0 deletions