1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef _ASM_X86_EDAC_H 3 #define _ASM_X86_EDAC_H 4 5 /* ECC atomic, DMA, SMP and interrupt safe scr 6 7 static inline void edac_atomic_scrub(void *va, 8 { 9 u32 i, *virt_addr = va; 10 11 /* 12 * Very carefully read and write to me 13 * are interrupt, DMA and SMP safe. 14 */ 15 for (i = 0; i < size / 4; i++, virt_ad 16 asm volatile("lock; addl $0, % 17 } 18 19 #endif /* _ASM_X86_EDAC_H */ 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.