mtd: nand: omap: Fix comment in platform data using wrong Kconfig symbol
[linux/fpc-iii.git] / arch / x86 / include / asm / edac.h
blob426fc53ff80305a5f01c7405894075ce2c587ac7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_EDAC_H
3 #define _ASM_X86_EDAC_H
5 /* ECC atomic, DMA, SMP and interrupt safe scrub function */
7 static inline void edac_atomic_scrub(void *va, u32 size)
9 u32 i, *virt_addr = va;
12 * Very carefully read and write to memory atomically so we
13 * are interrupt, DMA and SMP safe.
15 for (i = 0; i < size / 4; i++, virt_addr++)
16 asm volatile("lock; addl $0, %0"::"m" (*virt_addr));
19 #endif /* _ASM_X86_EDAC_H */