]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: qcom: scm: Flush the command buffer only instead of the entire cache
authorVikram Mulukutla <markivx@codeaurora.org>
Tue, 5 Aug 2014 01:31:45 +0000 (18:31 -0700)
committerKumar Gala <galak@codeaurora.org>
Mon, 19 Jan 2015 17:53:32 +0000 (11:53 -0600)
commitea66e2305bca82dde33a0d85a7be4ddea54f52b1
tree71750e563e24cef9437e2095d1cbaaf36c4c37a7
parent9a337ad8a10e918aa3585a87f6b1b892c36fed11
ARM: qcom: scm: Flush the command buffer only instead of the entire cache

scm_call flushes the entire cache before calling into the secure world.
This is both a performance penalty as well as insufficient on SMP systems
where the CPUs possess a write-back L1 cache. Flush only the command and
response buffers instead, moving the responsibility of flushing any other
cached buffer (being passed to the secure world) to callers.

Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
arch/arm/mach-qcom/scm.c