X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fvmstat.h;h=67ce70c8279be201e8ecb33fed569845a5386257;hb=a3b072cd180c12e8fe0ece9487b9065808327640;hp=a67b384157689ec9fda2abfec0173122fc98a4a8;hpb=14164b46fc994bcf82963ace00372cf808a31af1;p=~andy%2Flinux diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index a67b3841576..67ce70c8279 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -83,6 +83,14 @@ static inline void vm_events_fold_cpu(int cpu) #define count_vm_numa_events(x, y) do { (void)(y); } while (0) #endif /* CONFIG_NUMA_BALANCING */ +#ifdef CONFIG_DEBUG_TLBFLUSH +#define count_vm_tlb_event(x) count_vm_event(x) +#define count_vm_tlb_events(x, y) count_vm_events(x, y) +#else +#define count_vm_tlb_event(x) do {} while (0) +#define count_vm_tlb_events(x, y) do { (void)(y); } while (0) +#endif + #define __count_zone_vm_events(item, zone, delta) \ __count_vm_events(item##_NORMAL - ZONE_NORMAL + \ zone_idx(zone), delta)