samsung: pm-check: Cleanup chunk exclude code to use suspend_volatile
authorDoug Anderson <dianders@chromium.org>
Mon, 5 Nov 2012 22:50:18 +0000 (14:50 -0800)
committerGerrit <chrome-bot@google.com>
Wed, 7 Nov 2012 23:32:05 +0000 (15:32 -0800)
commitf00220b491115cfb43f4a2c07ea5365f3fe4ac68
treec977c34a4878fb0fc58d02256de705d951e7c856
parentc6320b2101085263c8c85159f08039db41a5f310
samsung: pm-check: Cleanup chunk exclude code to use suspend_volatile

Recent changes mark memory that may change across suspend/resume
as suspend_volatile.  We can now use this in pm-check, so do so.
That means we can remove some extra globals from printk.c.

This change also cleans up handling of sleep_save_sp:
* Don't exclude *sleep_save_sp.  That was a physical address and is
  also already handled by current_thread_info().
* Don't exclude sleep_save_sp.  Instead: we zero it out before out
  code runs.  This is a transitory value and zeroing it is fine.  Now
  we won't exclude chunks of memory stored near sleep_save_sp.

...and a few other minor fixes:
* Skips regions in s3c_pm_makecheck() too.
* Avoids goto in s3c_pm_runcheck() loop.

BUG=chrome-os-partner:15914
TEST=suspend_stress_test

Change-Id: I5eadc7631c3f31f91138170c5e37430da7e3520b
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/37359
Reviewed-by: Jon Kliegman <kliegs@chromium.org>
arch/arm/plat-samsung/pm-check.c
kernel/printk.c