]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: Separate kryo l2 accessors from PMU driver
authorIlia Lin <ilialin@codeaurora.org>
Fri, 3 Jul 2020 08:49:41 +0000 (10:49 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 11 Jul 2020 00:08:55 +0000 (17:08 -0700)
commit5f35f9c8773cea078afc9493930d7902fd749897
treed82c1673ed7872874839fef424b819e796b2ccf9
parent9971aa53d06560678dc29e2ce881bfcba233cc04
soc: qcom: Separate kryo l2 accessors from PMU driver

The driver provides kernel level API for other drivers
to access the MSM8996 L2 cache registers.
Separating the L2 access code from the PMU driver and
making it public to allow other drivers use it.
The accesses must be separated with a single spinlock,
maintained in this driver.

Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1593766185-16346-2-git-send-email-loic.poulain@linaro.org
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/perf/Kconfig
drivers/perf/qcom_l2_pmu.c
drivers/soc/qcom/Kconfig
drivers/soc/qcom/Makefile
drivers/soc/qcom/kryo-l2-accessors.c [new file with mode: 0644]
include/soc/qcom/kryo-l2-accessors.h [new file with mode: 0644]