diff options
author | Andi Kleen <ak@suse.de> | 2006-01-11 16:44:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:04:56 -0500 |
commit | 4cef0c61380888af99b054937ed391fb28757836 (patch) | |
tree | dd385a0dc1ab143285f77e0f5c1923490eddc26f | |
parent | fd78f11790c37e2165733699f50450500e63a7b3 (diff) |
[PATCH] x86_64: Make the cpu_*_maps in kernel/sched.c read mostly
They are referred to often so avoid potential false sharing for them.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index d129e560cc0d..c0c60c926d5e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3980,12 +3980,12 @@ asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len, | |||
3980 | * method, such as ACPI for e.g. | 3980 | * method, such as ACPI for e.g. |
3981 | */ | 3981 | */ |
3982 | 3982 | ||
3983 | cpumask_t cpu_present_map; | 3983 | cpumask_t cpu_present_map __read_mostly; |
3984 | EXPORT_SYMBOL(cpu_present_map); | 3984 | EXPORT_SYMBOL(cpu_present_map); |
3985 | 3985 | ||
3986 | #ifndef CONFIG_SMP | 3986 | #ifndef CONFIG_SMP |
3987 | cpumask_t cpu_online_map = CPU_MASK_ALL; | 3987 | cpumask_t cpu_online_map __read_mostly = CPU_MASK_ALL; |
3988 | cpumask_t cpu_possible_map = CPU_MASK_ALL; | 3988 | cpumask_t cpu_possible_map __read_mostly = CPU_MASK_ALL; |
3989 | #endif | 3989 | #endif |
3990 | 3990 | ||
3991 | long sched_getaffinity(pid_t pid, cpumask_t *mask) | 3991 | long sched_getaffinity(pid_t pid, cpumask_t *mask) |