swap: Assorted fixes and changes
authorAlan Cox <alan@linux.intel.com>
Mon, 20 Apr 2015 21:26:14 +0000 (22:26 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 20 Apr 2015 21:26:14 +0000 (22:26 +0100)
commit7cfddab9dfd5c9c25685a92f417973f6bd5ebf17
tree4207a722cb66d16d7f763924f026dd968eb958c7
parent1fef18bc9dbafc933dd6b4ae0f3576ebdfa28f6b
swap: Assorted fixes and changes

The swapper writes memory out in chunks that it knows fit one "page",
whether that is a bank number of a page number. It also provides a
swap_map function so you can map swap.

Rather than pass the process it passes the correct page number for each
write and no write crosses a bank.

Also allow the use of page2 for memory while swapping. That just requires
the value to be saved.

This changes the swap API so various drivers will need fixes and testing. It
should however take us closer to having the swap interface properly split
from the memory model, and to allowing swap in awkward cases like 16K banking.
Kernel/bank16k.c
Kernel/bank16k_low.c
Kernel/bankfixed.c
Kernel/include/kernel.h
Kernel/simple.c
Kernel/swap.c