Skip to content
Commit 96d2ab48 authored by Arjan van de Ven's avatar Arjan van de Ven
Browse files

hrtimer: fix signed/unsigned bug in slack estimator



the slack estimator used unsigned math; however for very short delay it's
possible that by the time you calculate the timeout, it's already passed and
you get a negative time/slack... in an unsigned variable... which then gets
turned into a 100 msec delay rather than zero.

This patch fixes this by using a signed typee in the right places.

Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
parent 704af52b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment