Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23032
b: refs/heads/master
c: 804f159
h: refs/heads/master
v: v3
  • Loading branch information
Kyle McMartin authored and Linus Torvalds committed Mar 23, 2006
1 parent 6605702 commit 1ef98a8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a2900b67652421b51fe25e4b86ecfec742b1f30
refs/heads/master: 804f1594cc3deb161e531a43d90c501f0db2635a
2 changes: 2 additions & 0 deletions trunk/include/asm-i386/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

#define __read_mostly __attribute__((__section__(".data.read_mostly")))

#endif
2 changes: 2 additions & 0 deletions trunk/include/asm-ia64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@
# define SMP_CACHE_BYTES (1 << 3)
#endif

#define __read_mostly __attribute__((__section__(".data.read_mostly")))

#endif /* _ASM_IA64_CACHE_H */
2 changes: 2 additions & 0 deletions trunk/include/asm-parisc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

#define SMP_CACHE_BYTES L1_CACHE_BYTES

#define __read_mostly __attribute__((__section__(".data.read_mostly")))

extern void flush_data_cache_local(void *); /* flushes local data-cache only */
extern void flush_instruction_cache_local(void *); /* flushes local code-cache only */
#ifdef CONFIG_SMP
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-sparc64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
#define SMP_CACHE_BYTES_SHIFT 6
#define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) /* L2 cache line size. */

#define __read_mostly __attribute__((__section__(".data.read_mostly")))

#endif
2 changes: 2 additions & 0 deletions trunk/include/asm-x86_64/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
__attribute__((__section__(".data.page_aligned")))
#endif

#define __read_mostly __attribute__((__section__(".data.read_mostly")))

#endif

#endif
4 changes: 1 addition & 3 deletions trunk/include/linux/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#endif

#if defined(CONFIG_X86) || defined(CONFIG_SPARC64) || defined(CONFIG_IA64) || defined(CONFIG_PARISC)
#define __read_mostly __attribute__((__section__(".data.read_mostly")))
#else
#ifndef __read_mostly
#define __read_mostly
#endif

Expand Down

0 comments on commit 1ef98a8

Please sign in to comment.