OSDN Git Service

perf: hisi: Add support for HiSilicon SoC L3C PMU driver
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Thu, 19 Oct 2017 11:05:18 +0000 (19:05 +0800)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Oct 2017 16:06:34 +0000 (17:06 +0100)
commit2940bc4333707a05e69b3ffd737bda0dc0c3004f
treea9a9bca2aac6ebc0f875e85ecd85c89620cdf134
parent6ce4ef94195da926245b58311119ed9d52428fdc
perf: hisi: Add support for HiSilicon SoC L3C PMU driver

This patch adds support for L3C PMU driver in HiSilicon SoC chip, Each
L3C has own control, counter and interrupt registers and is an separate
PMU. For each L3C PMU, it has 8-programable counters and each counter
is free-running. Interrupt is supported to handle counter (48-bits)
overflow.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Anurup M <anurup.m@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/hisilicon/Makefile
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c [new file with mode: 0644]
include/linux/cpuhotplug.h