aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorRoman Gushchin <[email protected]>2021-06-03 01:09:29 +0000
committerDennis Zhou <[email protected]>2021-06-05 20:40:59 +0000
commit0f0cace35fa655d383b64b4fce83a44d530c9aaf (patch)
tree9af377f9fc8a4e9f8eab9e4a89cc33a72a19aad0 /tools/perf/scripts/python/sched-migration.py
parentpercpu: make symbol 'pcpu_free_slot' static (diff)
downloadkernel-0f0cace35fa655d383b64b4fce83a44d530c9aaf.tar.gz
kernel-0f0cace35fa655d383b64b4fce83a44d530c9aaf.zip
mm, memcg: mark cgroup_memory_nosocket, nokmem and noswap as __ro_after_init
cgroup_memory_nosocket, cgroup_memory_nokmem and cgroup_memory_noswap are initialized during the kernel initialization and never change their value afterwards. cgroup_memory_nosocket, cgroup_memory_nokmem are written only from cgroup_memory(), which is marked as __init. cgroup_memory_noswap is written from setup_swap_account() and mem_cgroup_swap_init(), both are marked as __init. Mark all three variables as __ro_after_init. Signed-off-by: Roman Gushchin <[email protected]> Signed-off-by: Dennis Zhou <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions