2 comments:
File src/soc/intel/common/block/lpss/lpss.c:
static size_t size;
static const pci_devfn_t *lpss_devices;
I don't see why this needs to be static. The state does not need to live in between calls to this function. The call to soc_lpss_controllers_list is just a simple pointer assignment and should have virtually no overhead.
if (!lpss_devices)
lpss_devices = soc_lpss_controllers_list(&size);
See above.
To view, visit change 34137. To unsubscribe, or for help writing mail filters, visit settings.