[PATCH 0/2] __cpuhp_setup_state() returns positive value for dynamic state

From: Boris Ostrovsky
Date: Thu Dec 15 2016 - 09:44:48 EST


The first patch corrects description of __cpuhp_setup_state()'s possible
return values and the second fixes a bug (which causes Xen guests to crash).

As a follow-up question for the first patch --- should we allow calling
__cpuhp_setup_state() with state in [CPUHP_AP_ONLINE_DYN + 1 .. CPUHP_AP_ONLINE_DYN_END]
range?

Boris Ostrovsky (2):
cpu/hotplug: Clarify description of __cpuhp_setup_state() return
value
cpufreq: Remove cpu hotplug callbacks only if they were initialized

drivers/cpufreq/acpi-cpufreq.c | 2 +-
kernel/cpu.c | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)