summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorCan Peng <pengcan@kylinos.cn>2026-07-29 10:36:05 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-31 14:47:34 +0200
commit06f32dd67e6b23a05bef0d8183c5335af91c0c3b (patch)
tree37f9c28fd2861bb373922a8662d98491a1db1029 /tools/perf/scripts/python/event_analyzing_sample.py
parent2c50ffdc73f3a70d745d249f509fc290754121e6 (diff)
ACPI: processor: Unregister cpufreq notifier on init failure
acpi_processor_driver_init() registers the cpufreq policy notifier before registering the ACPI processor driver and setting up CPU hotplug state. If driver_register() or cpuhp_setup_state() fails, the error path only unregisters the ACPI processor driver and the idle driver. The cpufreq notifier remains registered even though initialization failed. Mirror the module exit path on the init failure path and unregister the cpufreq notifier when it has been registered. Fixes: c0e0421a60bf ("ACPI: processor: Reorder acpi_processor_driver_init()") Signed-off-by: Can Peng <pengcan@kylinos.cn> Link: https://patch.msgid.link/20260729023605.197367-1-pengcan@kylinos.cn Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions