2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/drivers/staging/zram
Jiang Liu da5cc7d338 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>
2013-06-06 12:12:21 -07:00
..
Kconfig staging: Add angle bracket before and after the URL 2013-01-07 14:56:04 -08:00
Makefile staging: zram: replace xvmalloc with zsmalloc 2012-02-08 17:13:00 -08:00
zram_drv.c zram: use atomic64_xxx() to replace zram_stat64_xxx() 2013-06-06 12:12:21 -07:00
zram_drv.h zram: use atomic64_xxx() to replace zram_stat64_xxx() 2013-06-06 12:12:21 -07:00
zram_sysfs.c zram: use atomic64_xxx() to replace zram_stat64_xxx() 2013-06-06 12:12:21 -07:00
zram.txt zram: force disksize setting before using zram 2013-02-03 17:52:49 -08:00