diff options
author | Akash Bagdia <akash.bagdia@ARM.com> | 2014-12-09 10:42:08 +0000 |
---|---|---|
committer | Akash Bagdia <akash.bagdia@ARM.com> | 2014-12-09 10:42:08 +0000 |
commit | 1c34ee20dfbbd557e394d61825232b10c0f3d37f (patch) | |
tree | b3a6cedf9cb10fec3c0722df7301bc1c5cca1507 /src/cpu/simple/atomic.cc | |
parent | 3ee4957b4930a252c0185a6bc71bdf1c6ebc5ed9 (diff) | |
download | gem5-1c34ee20dfbbd557e394d61825232b10c0f3d37f.tar.xz |
power: Low-power idle power state for idle CPUs
Add functionality to the BaseCPU that will put the entire CPU into a low-power
idle state whenever all threads in it are idle.
Diffstat (limited to 'src/cpu/simple/atomic.cc')
-rw-r--r-- | src/cpu/simple/atomic.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc index f3e14d401..3cd6c1666 100644 --- a/src/cpu/simple/atomic.cc +++ b/src/cpu/simple/atomic.cc @@ -247,6 +247,8 @@ AtomicSimpleCPU::activateContext(ThreadID thread_num) == activeThreads.end()) { activeThreads.push_back(thread_num); } + + BaseCPU::activateContext(thread_num); } @@ -273,6 +275,7 @@ AtomicSimpleCPU::suspendContext(ThreadID thread_num) } } + BaseCPU::suspendContext(thread_num); } |