From: Brian Gerst <bgerst@didntduck.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Andi Kleen <ak@suse.de>, lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] Trivial cleanup to x86_64 enter_lazy_tlb()
Date: Sat, 24 Sep 2005 20:07:22 -0400 [thread overview]
Message-ID: <4335EA3A.60903@didntduck.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
Move the #ifdef into the function body.
Signed-off-by: Brian Gerst <bgerst@didntduck.org>
[-- Attachment #2: 0002-Trivial-cleanup-to-x86_64-enter_lazy_tlb.txt --]
[-- Type: text/plain, Size: 960 bytes --]
Subject: [PATCH] Trivial cleanup to x86_64 enter_lazy_tlb()
Move the #ifdef into the function body.
Signed-off-by: Brian Gerst <bgerst@didntduck.org>
---
include/asm-x86_64/mmu_context.h | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
f01fd56b69e46c6cb3af9eaebe7b3a4ad3b0757a
diff --git a/include/asm-x86_64/mmu_context.h b/include/asm-x86_64/mmu_context.h
--- a/include/asm-x86_64/mmu_context.h
+++ b/include/asm-x86_64/mmu_context.h
@@ -15,18 +15,13 @@
int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
void destroy_context(struct mm_struct *mm);
-#ifdef CONFIG_SMP
-
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
{
+#ifdef CONFIG_SMP
if (read_pda(mmu_state) == TLBSTATE_OK)
write_pda(mmu_state, TLBSTATE_LAZY);
-}
-#else
-static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
-{
-}
#endif
+}
static inline void load_cr3(pgd_t *pgd)
{
reply other threads:[~2005-09-25 0:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4335EA3A.60903@didntduck.org \
--to=bgerst@didntduck.org \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.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