1
0
forked from mirrors/0ad

fixes+improvements from work:

timer: cleanup, remove duplication
topology: fix incorrect param order
tsc: ensure MSRs are available before accessing
msr: add prefix to make clear that registers are nehalem-specific

This was SVN commit r7892.
This commit is contained in:
janwas
2010-08-10 17:03:17 +00:00
parent e6c3f1c482
commit 7eebe05485
8 changed files with 130 additions and 130 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ JSBool StopJsTimer(JSContext* cx, JSObject*, uintN argc, jsval* argv, jsval* rva
TimerUnit now;
now.SetFromTimer();
now.Subtract(js_timer_overhead);
timer_BillClient(&js_timer_clients[slot], js_start_times[slot], now);
BillingPolicy_Default()(&js_timer_clients[slot], js_start_times[slot], now);
js_start_times[slot].SetToZero();
return JS_TRUE;
}