Charge State: Update memory-mapped AC status in the hook handler
Charge State: Update memory-mapped AC status in the hook handler

Update the AC status immediately in the AC_CHANGE_HOOK handler
so the memmory-mapped value shared with the host is correct
prior to the host receiving an "AC changed" ACPI notification.

BUG=chromium:349681
BRANCH=ToT
TEST=Plug/unplug AC power. Verify that the host 'ACEX' bit is
set prior to it receiving ACPI event 4 (or cleared before
ACPI event 5). See crbug.com/349681#c12

Change-Id: I5c84e05b6886c5da9e8504cb803c80c3ec7c23fb
Original-Change-Id: I1496efe1cfac9995e88bf9d84414ee903886d9ed
Signed-off-by: Dave Parker <a0cbe8131c36e5e74e2155ca4ce91517847db706@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/190345
Reviewed-by: Randall Spangler <62698fdbb84d1779579ee80c3f39fac22017e5bc@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/192136

alterapraxisptyltd/chromium-ec,md5555/ec,fourier49/BIZ_EC,coreboot/chrome-ec,eatbyte/chromium-ec,eatbyte/chromium-ec,thehobn/ec,longsleep/ec,thehobn/ec,akappy7/ChromeOS_EC_LED_Diagnostics,mtk09422/chromiumos-platform-ec,fourier49/BZ_DEV_EC,longsleep/ec,coreboot/chrome-ec,coreboot/chrome-ec,fourier49/BIZ_EC,akappy7/ChromeOS_EC_LED_Diagnostics,fourier49/BIZ_EC,eatbyte/chromium-ec,md5555/ec,mtk09422/chromiumos-platform-ec,akappy7/ChromeOS_EC_LED_Diagnostics,thehobn/ec,fourier49/BZ_DEV_EC,eatbyte/chromium-ec,alterapraxisptyltd/chromium-ec,md5555/ec,longsleep/ec,thehobn/ec,coreboot/chrome-ec,gelraen/cros-ec,coreboot/chrome-ec,mtk09422/chromiumos-platform-ec,md5555/ec,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,alterapraxisptyltd/chromium-ec,gelraen/cros-ec,fourier49/BZ_DEV_EC,gelraen/cros-ec,alterapraxisptyltd/chromium-ec,fourier49/BIZ_EC,longsleep/ec,mtk09422/chromiumos-platform-ec,gelraen/cros-ec,fourier49/BZ_DEV_EC,akappy7/ChromeOS_EC_LED_Diagnostics