* [PATCH] cacheline align VM_is_OOM to prevent false sharing
@ 2007-06-13 9:26 Andrea Arcangeli
0 siblings, 0 replies; only message in thread
From: Andrea Arcangeli @ 2007-06-13 9:26 UTC (permalink / raw)
To: linux-mm
# HG changeset patch
# User Andrea Arcangeli <andrea@suse.de>
# Date 1181724924 -7200
# Node ID b24d30f03c4426237f3e08e28a02635d6047b7dd
# Parent 61155bad1fc923ea547852ac9fafed9f8bc7485d
cacheline align VM_is_OOM to prevent false sharing
This is better to be cacheline aligned in smp kernels just in case.
Signed-off-by: Andrea Arcangeli <andrea@suse.de>
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -28,7 +28,7 @@ int sysctl_panic_on_oom;
int sysctl_panic_on_oom;
/* #define DEBUG */
-unsigned long VM_is_OOM;
+unsigned long VM_is_OOM __cacheline_aligned_in_smp;
static unsigned long last_tif_memdie_jiffies;
/**
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-13 9:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-13 9:26 [PATCH] cacheline align VM_is_OOM to prevent false sharing Andrea Arcangeli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox