VirtualBox

Changeset 61676 in vbox for trunk


Ignore:
Timestamp:
Jun 13, 2016 12:40:45 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108033
Message:

Devices/ACPI: when determining the current power consumption, use power_now and only fall back to current_now if the former isn't available. Thanks to Dennis Wassenberg / secunet!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DrvACPI.cpp

    r61675 r61676  
    644644                                    RTStrmClose(pStrmStatus);
    645645                                }
    646                                 rc = POWER_OPEN(&pStrmStatus, "current_now");
     646                                rc = POWER_OPEN(&pStrmStatus, "power_now");
     647                                if (RT_FAILURE(rc))
     648                                    rc = POWER_OPEN(&pStrmStatus, "current_now");
    647649                                if (RT_SUCCESS(rc))
    648650                                {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette