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

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

    Index: linux-2.6/arch/sh/include/asm/tlb.h
    ===================================================================
    --- linux-2.6.orig/arch/sh/include/asm/tlb.h
    +++ linux-2.6/arch/sh/include/asm/tlb.h
    @@ -23,8 +23,6 @@ struct mmu_gather {
    unsigned long start, end;
    };

    -DECLARE_PER_CPU(struct mmu_gather, mmu_gathers);
    -
    static inline void init_tlb_gather(struct mmu_gather *tlb)
    {
    tlb->start = TASK_SIZE;
    @@ -36,17 +34,13 @@ static inline void init_tlb_gather(struc
    }
    }

    -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;

    init_tlb_gather(tlb);
    -
    - return tlb;
    }

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

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

    static inline void



    \
     
     \ /
      Last update: 2010-08-28 16:31    [W:0.022 / U:0.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site