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)
commit404b5a97f5a2a718bb0feccc3712b1ab88f073d5
tree71750e563e24cef9437e2095d1cbaaf36c4c37a7
parent30cbb0c01bc98a2372966b8c5ac0ce1421cd933c
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