Commit 80baf699 authored by Martin Hicks's avatar Martin Hicks Committed by David Mosberger

[PATCH] ia64: Change mmu_gathers into per-cpu data

parent a9948a27
......@@ -29,7 +29,7 @@
#include <asm/uaccess.h>
#include <asm/tlb.h>
struct mmu_gather mmu_gathers[NR_CPUS];
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
/* References to section boundaries: */
extern char _stext, _etext, _edata, __init_begin, __init_end;
......
......@@ -63,7 +63,7 @@ struct mmu_gather {
};
/* Users of the generic TLB shootdown code must declare this storage space. */
extern struct mmu_gather mmu_gathers[NR_CPUS];
DECLARE_PER_CPU(struct mmu_gather, mmu_gathers);
/*
* Flush the TLB for address range START to END and, if not in fast mode, release the
......@@ -125,7 +125,7 @@ ia64_tlb_flush_mmu (struct mmu_gather *tlb, unsigned long start, unsigned long e
static inline struct mmu_gather *
tlb_gather_mmu (struct mm_struct *mm, unsigned int full_mm_flush)
{
struct mmu_gather *tlb = &mmu_gathers[smp_processor_id()];
struct mmu_gather *tlb = &per_cpu(mmu_gathers, smp_processor_id());
tlb->mm = mm;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment