Clock Tick Interrupt Configuration Method and Apparatus
First Claim
1. A method implemented by one or more computing devices, the method comprising:
- performing a compensation for a system time when a tick interrupt is executed;
setting a time for a next tick interrupt according to a timeout task and a compensated system time if the timeout task exists when the tick interrupt is executed; and
correcting, when a system enters into a low power mode after the tick interrupt is executed, the time for the next tick interrupt according to the timeout task that is updated when the low power mode is entered.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for setting a time for a tick interrupt are disclosed. The method includes performing a compensation for a system time when a tick interrupt is executed; setting a time of a next tick interrupt according to a timeout task and a compensated system time if the timeout task exists when the tick interrupt is executed; and when a system enters into a low power mode after the tick interrupt is executed, correcting the time of the next tick interrupt according to the timeout task that is updated when the low power mode is entered. The present disclosure can decouple logic relationships between tick interrupts and Idle tasks, thereby reduces the number of division operations that involve rounding, reduces such accumulated error associated with compensation time, and improves the accuracy of the system time, as compared to the existing technologies.
-
Citations
20 Claims
-
1. A method implemented by one or more computing devices, the method comprising:
-
performing a compensation for a system time when a tick interrupt is executed; setting a time for a next tick interrupt according to a timeout task and a compensated system time if the timeout task exists when the tick interrupt is executed; and correcting, when a system enters into a low power mode after the tick interrupt is executed, the time for the next tick interrupt according to the timeout task that is updated when the low power mode is entered. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. An apparatus comprising:
-
one or more processors; memory; a compensation module stored in the memory and executable by the one or more processors to perform a compensation for a system time when a tick interrupt is executed; a first interrupt setting module stored in the memory and executable by the one or more processors to set a time for a next tick interrupt according to a timeout task and a compensated system time if the timeout task exists when the tick interrupt is executed; and an interrupt correction module stored in the memory and executable by the one or more processors to correct, when a system enters into a low power mode after the tick interrupt is executed, the time for the next tick interrupt according to the timeout task that is updated when the low power mode is entered. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. One or more processor-readable media storing executable instructions that, when executed by one or more processors, cause the one or more processors to perform acts comprising:
-
performing a compensation for a system time when a tick interrupt is executed; and setting a time for a next tick interrupt according to a timeout task and a compensated system time is the timeout task exists when the tick interrupt is executed. - View Dependent Claims (20)
-
Specification