HACK: samsung: pm-check: Add runtime options to enable and panic
authorJonathan Kliegman <kliegs@chromium.org>
Thu, 18 Oct 2012 22:16:16 +0000 (18:16 -0400)
committerGerrit <chrome-bot@google.com>
Mon, 29 Oct 2012 21:49:34 +0000 (14:49 -0700)
commit95fa205dc6c82c218fb67fca0920d1e41f52b620
tree5a6794a0d7da3d4674d4dd6bfd7ec52f6c2a05b6
parente2f9cb69dea091b8bb1cd37e087248034fbce273
HACK: samsung: pm-check: Add runtime options to enable and panic

Add runtime options to enable, panic and switch between xor and crc
checks of memory.

Update the exclusions to ignore log_buf and sleep_save_sp

BUG=chrome-os-partner:15600
TEST=Tested that with pm_check_should_panic system panics after an
  error and continues running when not set
  Set and unset pm_check_use_xor - confirmed differences in time and
    difference in values for errors
  Set and unset pm_check_enabled, validated log messages for running or not
  Chanaged pm_check_chunksize, saw size of crc error blocks change
  Confirmed correct error messages with pm_check_printskips
  Confirmed suspend_stress_test still catches errors correctly

Change-Id: I4275782391de32378be2f717bd48852ffde634ce
Signed-off-by: Jonathan Kliegman <kliegs@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36475
Reviewed-by: Michael Spang <spang@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
arch/arm/kernel/sleep.S
arch/arm/plat-samsung/pm-check.c
kernel/printk.c