kernel-fxtec-pro1x/arch
Hugh Dickins dedeb0029b [SPARC64] mm: context switch ptlock
sparc64 is unique among architectures in taking the page_table_lock in
its context switch (well, cris does too, but erroneously, and it's not
yet SMP anyway).

This seems to be a private affair between switch_mm and activate_mm,
using page_table_lock as a per-mm lock, without any relation to its uses
elsewhere.  That's fine, but comment it as such; and unlock sooner in
switch_mm, more like in activate_mm (preemption is disabled here).

There is a block of "if (0)"ed code in smp_flush_tlb_pending which would
have liked to rely on the page_table_lock, in switch_mm and elsewhere;
but its comment explains how dup_mmap's flush_tlb_mm defeated it.  And
though that could have been changed at any time over the past few years,
now the chance vanishes as we push the page_table_lock downwards, and
perhaps split it per page table page.  Just delete that block of code.

Which leaves the mysterious spin_unlock_wait(&oldmm->page_table_lock)
in kernel/fork.c copy_mm.  Textual analysis (supported by Nick Piggin)
suggests that the comment was written by DaveM, and that it relates to
the defeated approach in the sparc64 smp_flush_tlb_pending.  Just delete
this block too.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-11-07 14:09:01 -08:00
..
alpha [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
arm Merge master.kernel.org:/home/rmk/linux-2.6-arm 2005-11-07 13:32:21 -08:00
arm26 [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
cris [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
frv [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
h8300 [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
i386 Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq 2005-11-07 13:28:20 -08:00
ia64 [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
m32r Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
m68k [PATCH] m68k: fix-up schedule_timeout() usage 2005-11-07 07:53:56 -08:00
m68knommu [PATCH] m68knommu: move some platform irq support out of irq.h 2005-11-07 08:00:47 -08:00
mips Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2005-11-07 11:15:23 -08:00
parisc [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
powerpc [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
ppc [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
ppc64 [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
s390 [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
sh [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
sh64 [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
sparc [SPARC]: Add sun4m LED driver. 2005-11-07 14:08:04 -08:00
sparc64 [SPARC64] mm: context switch ptlock 2005-11-07 14:09:01 -08:00
um [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
v850 [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
x86_64 [PATCH] unexport phys_proc_id and cpu_core_id 2005-11-07 07:54:09 -08:00
xtensa [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00