linux-mips
[Top] [All Lists]

[PATCH] Make page fault preempt-safe

To: ralf@linux-mips.org
Subject: [PATCH] Make page fault preempt-safe
From: Deepak Saxena <dsaxena@plexity.net>
Date: Wed, 28 Mar 2007 13:54:42 -0700
Cc: Manish Lachwani <mlachwani@mvista.com>, Ingo Molnar <mingo@elte.hu>, linux-mips@linux-mips.org
Organization: Plexity Networks
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: dsaxena@plexity.net
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11
Like the udelay() patch, this makes vmalloc_fault() preempt-safe under 
DEBUG_PREEMPT.

Signed-off-by: Deepak Saxena <dsaxena@mvista.com>

diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
index 6f90e7e..a2466c8 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
@@ -228,7 +228,7 @@ vmalloc_fault:
                pmd_t *pmd, *pmd_k;
                pte_t *pte_k;
 
-               pgd = (pgd_t *) pgd_current[smp_processor_id()] + offset;
+               pgd = (pgd_t *) pgd_current[raw_smp_processor_id()] + offset;
                pgd_k = init_mm.pgd + offset;
 
                if (!pgd_present(*pgd_k))

-- 
Deepak Saxena - dsaxena@plexity.net - http://www.plexity.net

In the end, they will not say, "those were dark times,"  they will ask
"why were their poets silent?" - Bertolt Brecht

<Prev in Thread] Current Thread [Next in Thread>