diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-12 08:04:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-12 11:32:03 -0700 |
commit | 34d4accfe0ed62d3a8e3dc28eec193d6085f9563 (patch) | |
tree | 0ee28d04c194b9f223acf184b37eac04004c2a21 /arch/sparc/mm/srmmu.c | |
parent | 144e988dd217d8db1c027ef7f1b5a4061a18c874 (diff) | |
download | talos-obmc-linux-34d4accfe0ed62d3a8e3dc28eec193d6085f9563.tar.gz talos-obmc-linux-34d4accfe0ed62d3a8e3dc28eec193d6085f9563.zip |
sparc32: drop btfixup for switch_mm
This revealed that the implementation of switch_mm
had a bogus extra argument.
No harm as said argument was never used - but confusing.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/srmmu.c')
-rw-r--r-- | arch/sparc/mm/srmmu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c index 564269de96cf..85d7f82e5785 100644 --- a/arch/sparc/mm/srmmu.c +++ b/arch/sparc/mm/srmmu.c @@ -560,8 +560,8 @@ static inline void free_context(int context) } -static void srmmu_switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, - struct task_struct *tsk, int cpu) +void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, + struct task_struct *tsk) { if(mm->context == NO_CONTEXT) { spin_lock(&srmmu_context_spinlock); @@ -2171,7 +2171,6 @@ void __init ld_mmu_srmmu(void) BTFIXUPSET_CALL(do_check_pgt_cache, srmmu_check_pgt_cache, BTFIXUPCALL_NOP); BTFIXUPSET_CALL(set_pte, srmmu_set_pte, BTFIXUPCALL_SWAPO0O1); - BTFIXUPSET_CALL(switch_mm, srmmu_switch_mm, BTFIXUPCALL_NORM); BTFIXUPSET_CALL(pte_pfn, srmmu_pte_pfn, BTFIXUPCALL_NORM); BTFIXUPSET_CALL(pmd_page, srmmu_pmd_page, BTFIXUPCALL_NORM); |