]> git.baikalelectronics.ru Git - kernel.git/commit
xen: use same main loop for counting and remapping pages
authorJuergen Gross <jgross@suse.com>
Wed, 18 May 2016 14:44:54 +0000 (16:44 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 24 May 2016 11:59:04 +0000 (12:59 +0100)
commit562f56ec3aa693dc9edc494c79f260ec144c26eb
tree22333953e2ca1753ada672ce79e62c7d4f1dd542
parent935668098879c84d72d03101402ec97d441f2696
xen: use same main loop for counting and remapping pages

Instead of having two functions for cycling through the E820 map in
order to count to be remapped pages and remap them later, just use one
function with a caller supplied sub-function called for each region to
be processed. This eliminates the possibility of a mismatch between
both loops which showed up in certain configurations.

Suggested-by: Ed Swierk <eswierk@skyportsystems.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/setup.c