summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSJ Park <sj@kernel.org>2026-09-14 07:23:23 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-10-12 21:26:09 -0700
commitcec08aad3def79bdb7a795a05e7c9a11d577b4f8 (patch)
treefc84698f7c20498d44354de4dfc31bc01dc455c2 /tools/perf/scripts/python
parent1d2397b2c414e3f1fb536666ccc21d4065a3d9a6 (diff)
mm/damon/sysfs-schemes: use switch-case in add_scheme_filters()
damon_sysfs_add_scheeme_filters() has long if-else chains for DAMOS filter types. Convert the code to use switch-case, which would be cleaner and more efficient. Link: https://lore.kernel.org/20260914142327.92510-7-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: David Gow <davidgow@davidgow.net> Cc: Usama Arif <usamaarif642@gmail.com> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions