intel_extreme: enable power on init

could be necessary on laptop with multiple graphics cards

Change-Id: I38040a4d83be62904b0154d75890ef00b2a878b0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4978
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Jérôme Duval 2022-02-19 09:37:17 +01:00
parent 20b50a5cb4
commit da6065015f

View File

@ -507,6 +507,10 @@ intel_extreme_init(intel_info &info)
return info.shared_area;
}
// enable power
gPCI->set_powerstate(info.pci->bus, info.pci->device, info.pci->function,
PCI_pm_state_d0);
memset((void*)info.shared_info, 0, sizeof(intel_shared_info));
int mmioIndex = 1;