projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fbebef
)
Eliminate race condition in timer_print_stats() found by Sorav's
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 6 Jul 2005 20:45:36 +0000
(20:45 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 6 Jul 2005 20:45:36 +0000
(20:45 +0000)
Checkbochs tool.
src/devices/timer.c
patch
|
blob
|
history
diff --git
a/src/devices/timer.c
b/src/devices/timer.c
index 24eede0e247e8c1f389be38f129dda96d81ffb80..c8c41d55cf412948eb71a04b52c748f0c554465d 100644
(file)
--- a/
src/devices/timer.c
+++ b/
src/devices/timer.c
@@
-123,7
+123,7
@@
timer_nsleep (int64_t ns)
void
timer_print_stats (void)
{
- printf ("Timer: %"PRId64" ticks\n", ti
cks
);
+ printf ("Timer: %"PRId64" ticks\n", ti
mer_ticks ()
);
}
\f
/* Timer interrupt handler. */