lkml.org 
[lkml]   [2010]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 14/21] um: Preemptible mmu_gather
    Fix up the um mmu_gather code to conform to the new API.

    Cc: Jeff Dike <jdike@addtoit.com>
    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    ---
    arch/um/include/asm/tlb.h | 16 ++--------------
    1 file changed, 2 insertions(+), 14 deletions(-)

    Index: linux-2.6/arch/um/include/asm/tlb.h
    ===================================================================
    --- linux-2.6.orig/arch/um/include/asm/tlb.h
    +++ linux-2.6/arch/um/include/asm/tlb.h
    @@ -22,9 +22,6 @@ struct mmu_gather {
    unsigned int fullmm; /* non-zero means full mm flush */
    };

    -/* Users of the generic TLB shootdown code must declare this storage space. */
    -DECLARE_PER_CPU(struct mmu_gather, mmu_gathers);
    -
    static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep,
    unsigned long address)
    {
    @@ -47,20 +44,13 @@ static inline void init_tlb_gather(struc
    }
    }

    -/* tlb_gather_mmu
    - * Return a pointer to an initialized struct mmu_gather.
    - */
    -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;
    }

    extern void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,
    @@ -87,8 +77,6 @@ tlb_finish_mmu(struct mmu_gather *tlb, u

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

    /* tlb_remove_page



    \
     
     \ /
      Last update: 2010-11-26 16:11    [W:4.176 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site