]> 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)
commitde2798f8530ef7a5fef99afc4051f06ca960f759
treed82c1673ed7872874839fef424b819e796b2ccf9
parent26db8a3166d75e366c28e080822227b87e556d0f
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]