主权项 |
1. A method, comprising:
receiving, at a basic input/output system (BIOS) included in an information handling system, a request to activate a license associated with the information handling system; retrieving, by the BIOS from a BIOS non-volatile memory, license information for the license, wherein the license information is usable to activate the license; based on the license information, activating the license on the information handling system, wherein the BIOS stores an activation timestamp for the license in the BIOS non-volatile memory; when the license information indicates a license duration for the license, further comprising:
based on the activation timestamp and the license duration, calculating an expiration timestamp for the license;registering an expiration callback event for execution when the expiration timestamp occurs; andregistering a clock callback event for execution when a change in a system clock of the information handling system is initiated; and when the change in the system clock of the information handling system is initiated, executing the clock callback event, further comprising:
before the change in the system clock is performed, calculating an elapsed duration for the license, wherein the elapsed duration is given by a first difference between a current system clock timestamp and the activation timestamp;allowing the change in the system clock to be performed;after the change in the system clock is performed, calculating an adjusted activation timestamp for the license, wherein the adjusted activation timestamp for the license is given by a second difference between a new system clock timestamp and the elapsed duration;updating the expiration timestamp for the license, wherein the expiration timestamp is given by a sum of the adjusted activation timestamp and the license duration; andstoring the adjusted activation timestamp and the updated expiration timestamp to the BIOS non-volatile memory. |