aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2025-04-19 06:36:49 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-05-12 23:50:31 -0700
commitf7f68274e476c49e29bfb81daf4ad717fe9880c6 (patch)
tree398e6017c77bd7273bdb8cc70708ba25d3b1615c /tools/perf/scripts/python
parentUpdate Christoph's Email address and make it consistent (diff)
downloadlinux-f7f68274e476c49e29bfb81daf4ad717fe9880c6.tar.gz
linux-f7f68274e476c49e29bfb81daf4ad717fe9880c6.zip
mm/vmalloc.c: change purge_ndoes as local static variable
Patch series "mm/vmalloc.c: code cleanup and improvements", v2. These changes were made from code inspection in mm/vmalloc.c. This patch (of 5): Static variable 'purge_ndoes' is defined in global scope, while it's only used in function __purge_vmap_area_lazy(). It mainly serves to avoid memory allocation repeatedly, especially when NR_CPUS is big. While a local static variable can also satisfy the demand, and can improve code readibility. Hence move its definition into __purge_vmap_area_lazy(). Link: https://lkml.kernel.org/r/20250418223653.243436-1-bhe@redhat.com Link: https://lkml.kernel.org/r/20250418223653.243436-2-bhe@redhat.com Signed-off-by: Baoquan He <bhe@redhat.com> Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com> Reviewed-by: Shivank Garg <shivankg@amd.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions