From: Deepak Saxena <dsaxena@plexity.net>
To: ralf@linux-mips.org
Cc: Manish Lachwani <mlachwani@mvista.com>,
Ingo Molnar <mingo@elte.hu>,
linux-mips@linux-mips.org
Subject: [PATCH] Make page fault preempt-safe
Date: Wed, 28 Mar 2007 13:54:42 -0700 [thread overview]
Message-ID: <20070328205442.GA18508@plexity.net> (raw)
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
next reply other threads:[~2007-03-28 21:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-28 20:54 Deepak Saxena [this message]
2007-03-29 21:30 ` [PATCH] Make page fault preempt-safe Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070328205442.GA18508@plexity.net \
--to=dsaxena@plexity.net \
--cc=linux-mips@linux-mips.org \
--cc=mingo@elte.hu \
--cc=mlachwani@mvista.com \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox