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 <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Jérôme Duval
2022-02-21 07:42:57 +00:00
parent 20b50a5cb4
commit da6065015f
@@ -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;