diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-03 13:30:13 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:38:04 (GMT) |
commit | 4d1b686e6bc40ce3f9af81c6c6ee63a75ab3673a (patch) | |
tree | 3a5bc3d1ff52d5930f10ef6503936c106c9d6242 /include/linux | |
parent | d0ba72d710f91713762bddfb3a85ff84ebc31332 (diff) | |
download | linux-fsl-qoriq-4d1b686e6bc40ce3f9af81c6c6ee63a75ab3673a.tar.xz |
mm: make vmstat -rt aware
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/vmstat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index a67b384..1ea2fd5 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -29,7 +29,9 @@ DECLARE_PER_CPU(struct vm_event_state, vm_event_states); static inline void __count_vm_event(enum vm_event_item item) { + preempt_disable_rt(); __this_cpu_inc(vm_event_states.event[item]); + preempt_enable_rt(); } static inline void count_vm_event(enum vm_event_item item) @@ -39,7 +41,9 @@ static inline void count_vm_event(enum vm_event_item item) static inline void __count_vm_events(enum vm_event_item item, long delta) { + preempt_disable_rt(); __this_cpu_add(vm_event_states.event[item], delta); + preempt_enable_rt(); } static inline void count_vm_events(enum vm_event_item item, long delta) |