tools:cgroup:memcg_shrinker remove redundant import
authorAlexander Pantyukhin <apantykhin@gmail.com>
Sun, 8 Jan 2023 10:50:23 +0000 (15:50 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:59 +0000 (17:12 -0800)
commitd526643f155c431e8dfef643195f2d636d4e4bb5
tree24ec3cdf399f6e5f166b1cfaa1c0a34d108b4940
parentb6f00c9190c8e694c9b2b38e7cc63964f7a99195
tools:cgroup:memcg_shrinker remove redundant import

Remove redundant import of the sys module.

Also use the sort function instead of sorted.  It sorts the direct array
without create the new one in memory.

Link: https://lkml.kernel.org/r/20230108105023.4289-1-apantykhin@gmail.com
Signed-off-by: Alexander Pantyukhin <apantykhin@gmail.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/cgroup/memcg_shrinker.py