]> xenbits.xensource.com Git - xen.git/commit
x86: don't pass negative time to gtime_to_gtsc()
authorJan Beulich <jbeulich@suse.com>
Thu, 11 Apr 2013 10:07:55 +0000 (12:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Apr 2013 10:07:55 +0000 (12:07 +0200)
commiteb60be3dd870aecfa47bed1118069680389c15f7
treec18d1981b786b01dab2c0617af63fc1db0d3b0bb
parentd1efb7702b0d112cf6e2f561aa60dc184642d525
x86: don't pass negative time to gtime_to_gtsc()

scale_delta(), which is being called by that function, doesn't cope
with that.

Also print a warning message, so hopefully we can eventually figure why
occasionally a negative value results from the calculation in the first
place.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/time.c