samsung: pm-check: Add interleaving support
authorDoug Anderson <dianders@chromium.org>
Thu, 8 Nov 2012 23:14:04 +0000 (15:14 -0800)
committerGerrit <chrome-bot@google.com>
Sat, 10 Nov 2012 02:10:38 +0000 (18:10 -0800)
commit6e89e3a51c7f5935b00b7a93445fbb4767828f32
treefc6a3b5b21c00f3700fb1f256cb856f1fbcad7d6
parent1730a5ebfa5c44e7f12103e780485a79621aeaf4
samsung: pm-check: Add interleaving support

When pm-check is used in conjunction with bitfix we can get much
faster processing times if we change the order that we process chunks.
Add support for changing the order that we process pages in save so
that bitfix can use it.

BUG=chrome-os-partner:15655
TEST=Timed before and after and saw 500-600ms speedup.  See associated
bitfix change (dd13e37d3ca428eb89ee6d9afe3b258ec4ca0bfd) for details.

Change-Id: If2b720a75f5274df0e5dc11d77662d73a4581ffb
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/37690
Reviewed-by: Jon Kliegman <kliegs@chromium.org>
arch/arm/plat-samsung/include/plat/pm.h
arch/arm/plat-samsung/pm-check.c