lkml.org 
[lkml]   [2010]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 15/28] arm: Preemptible mmu_gather
    Fix up the arm mmu_gahter code to conform to the new API.

    Cc: Russell King <rmk@arm.linux.org.uk>
    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    ---
    arch/arm/include/asm/tlb.h | 12 ++----------
    1 file changed, 2 insertions(+), 10 deletions(-)

    Index: linux-2.6/arch/arm/include/asm/tlb.h
    ===================================================================
    --- linux-2.6.orig/arch/arm/include/asm/tlb.h
    +++ linux-2.6/arch/arm/include/asm/tlb.h
    @@ -40,17 +40,11 @@ struct mmu_gather {
    unsigned long range_end;
    };

    -DECLARE_PER_CPU(struct mmu_gather, mmu_gathers);
    -
    -static inline struct mmu_gather *
    -tlb_gather_mmu(struct mm_struct *mm, unsigned int full_mm_flush)
    +static inline void
    +tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, unsigned int full_mm_flush)
    {
    - struct mmu_gather *tlb = &get_cpu_var(mmu_gathers);
    -
    tlb->mm = mm;
    tlb->fullmm = full_mm_flush;
    -
    - return tlb;
    }

    static inline void
    @@ -61,8 +55,6 @@ tlb_finish_mmu(struct mmu_gather *tlb, u

    /* keep the page table cache within bounds */
    check_pgt_cache();
    -
    - put_cpu_var(mmu_gathers);
    }

    /*



    \
     
     \ /
      Last update: 2010-06-07 13:23    [W:0.046 / U:0.280 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site