kernel_optimize_test/arch/arc
Alexey Brodkin 6e3761145a ARC: Fix CONFIG_SWAP
swap was broken on ARC due to silly copy-paste issue.

We encode offset from swapcache page in __swp_entry() as (off << 13) but
were not decoding back in __swp_offset() as (off >> 13) - it was still
(off << 13).

This finally fixes swap usage on ARC.

| # mkswap /dev/sda2
|
| # swapon -a -e /dev/sda2
| Adding 500728k swap on /dev/sda2.  Priority:-2 extents:1 across:500728k
|
| # free
|              total       used       free     shared    buffers     cached
| Mem:        765104      13456     751648       4736          8       4736
| -/+ buffers/cache:       8712     756392
| Swap:       500728          0     500728

Cc: stable@vger.kernel.org
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
2018-07-09 11:31:49 -07:00
..
boot kbuild: mark $(targets) as .SECONDARY and remove .PRECIOUS markers 2018-04-07 19:04:02 +09:00
configs ARC: configs: Remove CONFIG_INITRAMFS_SOURCE from defconfigs 2018-07-09 11:25:45 -07:00
include ARC: Fix CONFIG_SWAP 2018-07-09 11:31:49 -07:00
kernel ARC: Improve cmpxchg syscall implementation 2018-07-09 11:22:05 -07:00
lib
mm mm: fix races between swapoff and flush dcache 2018-04-05 21:36:26 -07:00
oprofile
plat-axs10x
plat-eznps
plat-hsdk ARC: [plat-hsdk]: Configure APB GPIO controller on ARC HSDK platform 2018-07-09 11:21:21 -07:00
plat-sim
plat-tb10x
Kbuild
Kconfig ARC fixes for 4.16-rc4 2018-03-01 14:32:23 -08:00
Kconfig.debug
Makefile ARC: Explicitly add -mmedium-calls to CFLAGS 2018-06-13 17:46:34 -07:00