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>
--- /dev/null
+#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