diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-08-08 11:45:37 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-08-08 11:45:37 +0100 |
commit | dedb00f212bbfbe4336f021844afd7c950455b26 (patch) | |
tree | 528d0e5c5a64459adcc2625d8a02b383e17f9fba /xen/arch/x86/flushtlb.c | |
parent | ff3a405c4dbf73525e2a65ca60276f5d4ed6a8ae (diff) | |
download | xen-dedb00f212bbfbe4336f021844afd7c950455b26.tar.gz xen-dedb00f212bbfbe4336f021844afd7c950455b26.tar.bz2 xen-dedb00f212bbfbe4336f021844afd7c950455b26.zip |
[XEN] Make tlbflush_time a PER_CPU variable.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/flushtlb.c')
-rw-r--r-- | xen/arch/x86/flushtlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/flushtlb.c b/xen/arch/x86/flushtlb.c index 5e132a7a14..e3415dd3dd 100644 --- a/xen/arch/x86/flushtlb.c +++ b/xen/arch/x86/flushtlb.c @@ -20,7 +20,7 @@ #endif u32 tlbflush_clock = 1U; -u32 tlbflush_time[NR_CPUS]; +DEFINE_PER_CPU(u32, tlbflush_time); void write_cr3(unsigned long cr3) { @@ -71,7 +71,7 @@ void write_cr3(unsigned long cr3) * case, so really we are being ultra paranoid. */ - tlbflush_time[smp_processor_id()] = t2; + this_cpu(tlbflush_time) = t2; local_irq_restore(flags); } |