summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorKirill Tkhai <tkhai@yandex.ru>2013-04-08 22:29:46 +0200
committerDavid S. Miller <davem@davemloft.net>2013-04-09 04:50:47 +0200
commit07df841877195765d958df146f614fc7bdedd5e3 (patch)
tree9c749251ab90cd88b42f98c42e652f9b75b425b9 /arch/sparc/include
parentsparc: Consistently use 'wr' and 'rd' instructions for ASRs. (diff)
downloadlinux-07df841877195765d958df146f614fc7bdedd5e3.tar.xz
linux-07df841877195765d958df146f614fc7bdedd5e3.zip
sparc64: Do not save/restore interrupts in get_new_mmu_context()
get_new_mmu_context() is always called with interrupts disabled. So it's possible to do this micro optimization. (Also fix the comment to switch_mm, which is called in both cases) Signed-off-by: Kirill Tkhai <tkhai@yandex.ru> CC: David Miller <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r--arch/sparc/include/asm/mmu_context_64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/mmu_context_64.h b/arch/sparc/include/asm/mmu_context_64.h
index 9191ca62ed9c..3d528f06e4b0 100644
--- a/arch/sparc/include/asm/mmu_context_64.h
+++ b/arch/sparc/include/asm/mmu_context_64.h
@@ -68,7 +68,7 @@ extern void smp_tsb_sync(struct mm_struct *mm);
extern void __flush_tlb_mm(unsigned long, unsigned long);
-/* Switch the current MM context. Interrupts are disabled. */
+/* Switch the current MM context. */
static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *tsk)
{
unsigned long ctx_valid, flags;