diff options
| author | Jiang Liu <liuj97@gmail.com> | 2013-06-07 00:07:31 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-06 12:12:21 -0700 |
| commit | da5cc7d338f97886ebf35be92995460289379b73 (patch) | |
| tree | 847b5eaef22ffb4041becdebec2e2888e3dd55f2 /tools/perf/scripts | |
| parent | 42e99bd975fdd24d2bf1a24ebb8b0b42bab8ba65 (diff) | |
zram: use atomic64_xxx() to replace zram_stat64_xxx()
Use atomic64_xxx() to replace open-coded zram_stat64_xxx().
Some architectures have native support of atomic64 operations,
so we can get rid of the spin_lock() in zram_stat64_xxx().
On the other hand, for platforms use generic version of atomic64
implement, it may cause an extra save/restore of the interrupt
flag. So it's a tradeoff.
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
