summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorHoan Tran <Hoan@os.amperecomputing.com>2018-11-07 22:40:58 +0300
committerWill Deacon <will.deacon@arm.com>2018-11-21 19:28:00 +0300
commitcbb72a3c19eff0ea3ccb0b068eca189063c86174 (patch)
tree81ca26892c6ba72b7c56b00ebe03c4431973629f /drivers/vfio
parent472dc9fa7cc0769321d91b55eed4e21e2ab86632 (diff)
downloadlinux-cbb72a3c19eff0ea3ccb0b068eca189063c86174.tar.xz
drivers/perf: xgene: Add CPU hotplug support
If the CPU assigned to the xgene PMU is taken offline, then subsequent perf invocations on the PMU will fail: # echo 0 > /sys/devices/system/cpu/cpu0/online # perf stat -a -e l3c0/cycle-count/,l3c0/write/ sleep 1 Error: The sys_perf_event_open() syscall returned with 19 (No such device) for event (l3c0/cycle-count/). /bin/dmesg may provide additional information. No CONFIG_PERF_EVENTS=y kernel support configured? This patch implements a hotplug notifier in the xgene PMU driver so that the PMU context is migrated to another online CPU should its assigned CPU disappear. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Hoan Tran <hoan.tran@amperecomputing.com> [will: Made naming of new cpuhp_state enum entry consistent] Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions