sys: Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
xen/acpi: only evaluate Processor objects matching online CPUsCurrent Xen Processor driver will evaluate any Processor object on theACPI tables regardless of whether the processor is online or not
xen/acpi: only evaluate Processor objects matching online CPUsCurrent Xen Processor driver will evaluate any Processor object on theACPI tables regardless of whether the processor is online or not.Avoid doing so for processors that are not online, as evaluatingmethods of processors that are not online could lead to accesses toinvalid memory, and in any case the data that the driver fetches fromthe Processor ACPI object only makes sense for processors that areonline.Note the CPU related data fetched from Xen using XENPF_get_cpuinfohypercall could be cached, I leave that as a future optimization.Sponsored by: Citrix Systems R&DFixes: b93f47eaeef7 ('xen/acpi: upload Cx and Px data to Xen')
show more ...
xen: Remove unused devclass arguments to DRIVER_MODULE.
xen/acpi: upload Cx and Px data to XenWhen FreeBSD is running as dom0 (initial domain) on a Xen system ithas access to the native ACPI tables and is the OSPM. However thehypervisor is the entity
xen/acpi: upload Cx and Px data to XenWhen FreeBSD is running as dom0 (initial domain) on a Xen system ithas access to the native ACPI tables and is the OSPM. However thehypervisor is the entity in charge of the CPU idle and frequencystates, and in order to perform this duty it requires informationfound the ACPI dynamic tables that can only be parsed by the OSPM.Introduce a new Xen specific ACPI driver to fetch the Processorrelated information and upload it to Xen. Note that this driver needsto take precedence over the generic ACPI CPU driver when running asdom0, so downgrade the probe score of the native driver toBUS_PROBE_DEFAULT in order for the Xen specific driver to useBUS_PROBE_SPECIFIC.Tested on an Intel NUC to successfully parse and upload both the Cx andPx states to Xen.Sponsored by: Citrix Systems R&DReviewed by: jhb kibDifferential revision: https://reviews.freebsd.org/D34841