Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

authored by

Martin Schwidefsky and committed by
Heiko Carstens
b07c9015 7683f744

+1 -1
+1 -1
arch/s390/oprofile/hwsampler.c
··· 580 580 { 581 581 /* We do not have sampler space available for all possible CPUs. 582 582 All CPUs should be online when hw sampling is activated. */ 583 - return NOTIFY_BAD; 583 + return (hws_state <= HWS_DEALLOCATED) ? NOTIFY_OK : NOTIFY_BAD; 584 584 } 585 585 586 586 static struct notifier_block hws_cpu_notifier = {