x86: unify show_interrupts() and proc helpers
[linux-2.6/linux-2.6-openrd.git] / include / asm-x86 / edac.h
blob9493c5b27bbdb4584bc60ff98b4fae0fd2dfc54f
1 #ifndef ASM_X86__EDAC_H
2 #define ASM_X86__EDAC_H
4 /* ECC atomic, DMA, SMP and interrupt safe scrub function */
6 static inline void atomic_scrub(void *va, u32 size)
8 u32 i, *virt_addr = va;
11 * Very carefully read and write to memory atomically so we
12 * are interrupt, DMA and SMP safe.
14 for (i = 0; i < size / 4; i++, virt_addr++)
15 asm volatile("lock; addl $0, %0"::"m" (*virt_addr));
18 #endif /* ASM_X86__EDAC_H */