cpu: Accurately count idle cycles for simple cpu
authorLena Olson <lena@cs.wisc,edu>
Mon, 19 Aug 2013 07:52:35 +0000 (03:52 -0400)
committerLena Olson <lena@cs.wisc,edu>
Mon, 19 Aug 2013 07:52:35 +0000 (03:52 -0400)
commit646c4a23ca44aab5468c896034288151c89be782
treee63c57a515669a9c7c24b39b8cfcf39804d00276
parentc26911013c799d63dfe854de8cce11137324cde2
cpu: Accurately count idle cycles for simple cpu

Added a couple missing updates to the notIdleFraction stat. Without
these, it sometimes gives a (not) idle fraction that is greater than 1
or less than 0.
src/cpu/ozone/cpu_impl.hh
src/cpu/simple/atomic.cc
src/cpu/simple/timing.cc