]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commitdiff
arm64: Add atomic_scrub function for EDAC
authorSergey Temerkhanov <sergey.temerkhanov@auriga.com>
Thu, 28 May 2015 04:14:51 +0000 (21:14 -0700)
committerJulien Grall <julien.grall@citrix.com>
Mon, 28 Sep 2015 11:05:17 +0000 (12:05 +0100)
Add an atomic_scrub function for EDAC on arm64.

Discussions on why this function is made a no-op is here.
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/326986.html

Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
arch/arm64/include/asm/edac.h [new file with mode: 0644]

diff --git a/arch/arm64/include/asm/edac.h b/arch/arm64/include/asm/edac.h
new file mode 100644 (file)
index 0000000..c3670a3
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef __ASM_EDAC_H
+#define __ASM_EDAC_H
+
+/* ECC atomic, DMA, SMP and interrupt safe scrub function */
+
+static inline void atomic_scrub(void *va, u32 size)
+{
+       /* Stub function for now until an ARM64 HW has a way to test it */
+       WARN_ONCE(1, "not implemented");
+}
+
+#endif