]> 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)
commitdf473dd74b8cd263466b73bb68b09b9ac001b5f8
tree22333953e2ca1753ada672ce79e62c7d4f1dd542
parentf882c342d33c6d280002a292db1e3d819188b204
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