-
- Downloads
[PATCH] Move read_mostly definition to asm/cache.h
Seems like needless clutter having a bunch of #if defined(CONFIG_$ARCH) in include/linux/cache.h. Move the per architecture section definition to asm/cache.h, and keep the if-not-defined dummy case in linux/cache.h to catch architectures which don't implement the section. Verified that symbols still go in .data.read_mostly on parisc, and the compile doesn't break. Signed-off-by:Kyle McMartin <kyle@parisc-linux.org> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- include/asm-i386/cache.h 2 additions, 0 deletionsinclude/asm-i386/cache.h
- include/asm-ia64/cache.h 2 additions, 0 deletionsinclude/asm-ia64/cache.h
- include/asm-parisc/cache.h 2 additions, 0 deletionsinclude/asm-parisc/cache.h
- include/asm-sparc64/cache.h 2 additions, 0 deletionsinclude/asm-sparc64/cache.h
- include/asm-x86_64/cache.h 2 additions, 0 deletionsinclude/asm-x86_64/cache.h
- include/linux/cache.h 1 addition, 3 deletionsinclude/linux/cache.h
Loading
Please register or sign in to comment