summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/powerpc-hcalls.py
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2024-02-14 16:14:04 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2024-02-14 16:14:04 +0300
commitdca79603fbc592ec7ea8bd7ba274052d3984e882 (patch)
tree3573fae16216f3a93079dee1919fd65409164784 /tools/perf/scripts/python/powerpc-hcalls.py
parent777f81f0a9c780a6443bcf2c7785f0cc2e87c1ef (diff)
downloadlinux-dca79603fbc592ec7ea8bd7ba274052d3984e882.tar.xz
powerpc/smp: Lookup avail once per device tree node
The of_device_is_available() check only needs to be done once per device node, there's no need to repeat it for each thread. Move it out of the loop. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231229120107.2281153-3-mpe@ellerman.id.au
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions