dm: allow PM1_RTC_EN to be written to PM1A

Clear Linux complains about not being able to write the bit to PM1A:

ACPI Error: Could not enable RealTimeClock event (20180531/evxfevnt-184)

Tracked-On: #2176
Signed-off-by: Peter Fang <peter.fang@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Peter Fang 2018-12-24 23:29:11 -08:00 committed by wenlingz
parent 57c661c48d
commit 40f6a9fdff

View File

@ -200,7 +200,7 @@ pm1_enable_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
* the global lock, but ACPI-CA whines profusely if it * the global lock, but ACPI-CA whines profusely if it
* can't set GBL_EN. * can't set GBL_EN.
*/ */
pm1_enable = *eax & (PM1_PWRBTN_EN | PM1_GBL_EN); pm1_enable = *eax & (PM1_RTC_EN | PM1_PWRBTN_EN | PM1_GBL_EN);
sci_update(ctx); sci_update(ctx);
} }
pthread_mutex_unlock(&pm_lock); pthread_mutex_unlock(&pm_lock);