summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-tx4939.c
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-06-06 20:07:31 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-06 23:12:21 +0400
commitda5cc7d338f97886ebf35be92995460289379b73 (patch)
tree847b5eaef22ffb4041becdebec2e2888e3dd55f2 /drivers/rtc/rtc-tx4939.c
parent42e99bd975fdd24d2bf1a24ebb8b0b42bab8ba65 (diff)
downloadlinux-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