diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-06-06 20:07:31 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-06 23:12:21 +0400 |
commit | da5cc7d338f97886ebf35be92995460289379b73 (patch) | |
tree | 847b5eaef22ffb4041becdebec2e2888e3dd55f2 /drivers/rtc/rtc-tx4939.c | |
parent | 42e99bd975fdd24d2bf1a24ebb8b0b42bab8ba65 (diff) | |
download | linux-da5cc7d338f97886ebf35be92995460289379b73.tar.xz |
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 'drivers/rtc/rtc-tx4939.c')
0 files changed, 0 insertions, 0 deletions