aboutsummaryrefslogtreecommitdiff
path: root/kernel/timer.c
Commit message (Collapse)AuthorAgeFilesLines
* timer: optimize apply_slack()anarkia19762016-09-131-1/+1
| | | | __fls(mask) is equivalent to find_last_bit(&mask, BITS_PER_LONG), but cheaper
* Optimise apply_slack() for size and speed.Chinmay V S2016-08-261-6/+3
| | | | | | | | | | | | | To apply proper slack, the original algorithm used to prepare a mask and then apply the mask to obtain the appropriately rounded-off absolute time the timer expires. This patch modifies the masking logic to a bit-shift logic, therby reducing the complexity and number of operations. Thus obtaining a minor speed-up. Signed-off-by: Chinmay V S <chinmay.v.s@pathpartnertech.com> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
* first commitMeizu OpenSource2016-08-151-0/+1719