aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-09-09 18:43:22 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-10 08:04:59 -0400
commitf7d0b926ac8c8ec0c7a83ee69409bd2e6bb39f81 (patch)
treec5d6c99368dbe769c5a7ee9a00843d2745191f68 /arch/x86
parentadee14b2e1557d0a8559f29681732d05a89dfc35 (diff)
mm: define USE_SPLIT_PTLOCKS rather than repeating expression
Define USE_SPLIT_PTLOCKS as a constant expression rather than repeating "NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS" all over the place. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Acked-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/xen/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index aa37469da696..2e1b64088490 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -646,7 +646,7 @@ static spinlock_t *lock_pte(struct page *page)
646{ 646{
647 spinlock_t *ptl = NULL; 647 spinlock_t *ptl = NULL;
648 648
649#if NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS 649#if USE_SPLIT_PTLOCKS
650 ptl = __pte_lockptr(page); 650 ptl = __pte_lockptr(page);
651 spin_lock(ptl); 651 spin_lock(ptl);
652#endif 652#endif