summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-04-24 13:46:59 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-05-03 07:45:38 +0300
commit3f2290e1b5192fdfa74f012220a8d90067beb076 (patch)
treed789e4a7958fcde2c25d55d7e436452f461bcc8f /tools/perf/scripts/python/export-to-postgresql.py
parent687b8f24f14db842c8c3f8cb8b24c9a29b691db8 (diff)
downloadlinux-3f2290e1b5192fdfa74f012220a8d90067beb076.tar.xz
powerpc/sysfs: Move #ifdef CONFIG_HOTPLUG_CPU out of the function body
The entire body of unregister_cpu_online() is inside an #ifdef CONFIG_HOTPLUG_CPU block. This is ugly and means we create an empty function when hotplug is disabled for no reason. Instead move the #ifdef out of the function body and define the function to be NULL in the else case. This means we'll pass NULL to cpuhp_setup_state(), but that's fine because it accepts NULL to mean there is no teardown callback, which is exactly what we want. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions