zetSysmanStandbySetMode is not settable from L0
Change-Id: I05d60f960c9cb89b3d53259067e05e8f20e9b602 Signed-off-by: Bill Jordan <bill.jordan@intel.com>
This commit is contained in:
parent
bf702c274d
commit
a2a7501b79
|
@ -56,10 +56,12 @@ ze_result_t LinuxStandbyImp::getMode(zet_standby_promo_mode_t &mode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ze_result_t LinuxStandbyImp::setMode(zet_standby_promo_mode_t mode) {
|
ze_result_t LinuxStandbyImp::setMode(zet_standby_promo_mode_t mode) {
|
||||||
if (ZET_STANDBY_PROMO_MODE_DEFAULT == mode) {
|
// standbyModeFile is not writable.
|
||||||
return pSysfsAccess->write(standbyModeFile, standbyModeDefault);
|
// Mode cannot be set from L0.
|
||||||
}
|
// To set the mode, user must reload
|
||||||
return pSysfsAccess->write(standbyModeFile, standbyModeNever);
|
// the i915 module and set module parameter
|
||||||
|
// enable_rc6 appropriately.
|
||||||
|
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LinuxStandbyImp::LinuxStandbyImp(OsSysman *pOsSysman) {
|
LinuxStandbyImp::LinuxStandbyImp(OsSysman *pOsSysman) {
|
||||||
|
|
Loading…
Reference in New Issue