Release 4.14 arch/x86/include/asm/edac.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_EDAC_H
#define _ASM_X86_EDAC_H
/* ECC atomic, DMA, SMP and interrupt safe scrub function */
static inline void edac_atomic_scrub(void *va, u32 size)
{
u32 i, *virt_addr = va;
/*
* Very carefully read and write to memory atomically so we
* are interrupt, DMA and SMP safe.
*/
for (i = 0; i < size / 4; i++, virt_addr++)
asm volatile("lock; addl $0, %0"::"m" (*virt_addr));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thomas Gleixner | 39 | 88.64% | 1 | 33.33% |
Joe Perches | 4 | 9.09% | 1 | 33.33% |
Borislav Petkov | 1 | 2.27% | 1 | 33.33% |
Total | 44 | 100.00% | 3 | 100.00% |
#endif /* _ASM_X86_EDAC_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thomas Gleixner | 46 | 83.64% | 2 | 33.33% |
Joe Perches | 4 | 7.27% | 1 | 16.67% |
H. Peter Anvin | 3 | 5.45% | 1 | 16.67% |
Borislav Petkov | 1 | 1.82% | 1 | 16.67% |
Greg Kroah-Hartman | 1 | 1.82% | 1 | 16.67% |
Total | 55 | 100.00% | 6 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.