Commit b07c9015 authored by Martin Schwidefsky's avatar Martin Schwidefsky Committed by Heiko Carstens

[S390] hwsampler: allow cpu hotplug

The hardware sample cpu hotplug notifier always returns NOTIFY_BAD.
That will prevent cpu hotplug if the machine is enabled for hardware
sampling even if it is not used. Fix the cpu hotplug notifier and
allow cpu hotplug if hardware sampling is unused.
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent 7683f744
...@@ -580,7 +580,7 @@ static int hws_cpu_callback(struct notifier_block *nfb, ...@@ -580,7 +580,7 @@ static int hws_cpu_callback(struct notifier_block *nfb,
{ {
/* We do not have sampler space available for all possible CPUs. /* We do not have sampler space available for all possible CPUs.
All CPUs should be online when hw sampling is activated. */ All CPUs should be online when hw sampling is activated. */
return NOTIFY_BAD; return (hws_state <= HWS_DEALLOCATED) ? NOTIFY_OK : NOTIFY_BAD;
} }
static struct notifier_block hws_cpu_notifier = { static struct notifier_block hws_cpu_notifier = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment