History

[IA64] Add __read_mostly support for IA64

sparc64, i386 and x86_64 have support for a special data section dedicated to rarely updated data that is frequently read. The section was created to avoid false sharing of those rarely read data with frequently written kernel data. This patch creates such a data section for ia64 and will group rarely written data into this section.

Christoph Lameter committed 20 years ago

Commit dc86e881 parent d5bf3162 files · +4 −1Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/cache.h+1−1
@@ -13,7 +13,7 @@ · 12 unmodified lines
13#define SMP_CACHE_BYTES L1_CACHE_BYTES13#define SMP_CACHE_BYTES L1_CACHE_BYTES
14#endif14#endif
15 15
16#if defined(CONFIG_X86) || defined(CONFIG_SPARC64)16#if defined(CONFIG_X86) || defined(CONFIG_SPARC64) || defined(CONFIG_IA64)
17#define __read_mostly __attribute__((__section__(".data.read_mostly")))17#define __read_mostly __attribute__((__section__(".data.read_mostly")))
18#else18#else
19#define __read_mostly19#define __read_mostly

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t