[PATCH 5.17 0864/1126] PM: core: keep irq flags in device_pm_check_callbacks()