]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: qcom_scm-32: replace open-coded call to __cpuc_flush_dcache_area()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 24 Jul 2015 09:21:02 +0000 (10:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 11 Aug 2015 17:45:00 +0000 (18:45 +0100)
commite848121ae7f849b13801fcb78be6f018deaa9ad9
treebd7d7d35ba8575eccfcc01d2338e2a91c8357ff5
parent4bc83baa210521ef2af20ebc796c7641cfecdd8e
firmware: qcom_scm-32: replace open-coded call to __cpuc_flush_dcache_area()

Rathe rthan directly accessing architecture internal functions, provide
an "method"-centric wrapper for qcom_scm-32 to do what's necessary to
ensure that the secure monitor can see the data.  This is called
"secure_flush_area" and ensures that the specified memory area is
coherent across the secure boundary.

Acked-by: Andy Gross <agross@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cacheflush.h
drivers/firmware/qcom_scm-32.c