Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Make page fault preempt-safe
@ 2007-03-28 20:54 Deepak Saxena
  2007-03-29 21:30 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Deepak Saxena @ 2007-03-28 20:54 UTC (permalink / raw)
  To: ralf; +Cc: Manish Lachwani, Ingo Molnar, linux-mips


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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Make page fault preempt-safe
  2007-03-28 20:54 [PATCH] Make page fault preempt-safe Deepak Saxena
@ 2007-03-29 21:30 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-03-29 21:30 UTC (permalink / raw)
  To: Deepak Saxena; +Cc: Manish Lachwani, Ingo Molnar, linux-mips

On Wed, Mar 28, 2007 at 01:54:42PM -0700, Deepak Saxena wrote:

> Like the udelay() patch, this makes vmalloc_fault() preempt-safe under 
> DEBUG_PREEMPT.

There were two more instances which also needed to be fixed, so I just did
that.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-29 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-28 20:54 [PATCH] Make page fault preempt-safe Deepak Saxena
2007-03-29 21:30 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox