diff options
author | David Guillen Fandos <david.guillen@arm.com> | 2016-06-06 17:16:43 +0100 |
---|---|---|
committer | David Guillen Fandos <david.guillen@arm.com> | 2016-06-06 17:16:43 +0100 |
commit | fb5fc11da49938660ea22c336964677cdba890e1 (patch) | |
tree | 321c3c2a60e6e5f317904cc89971700d939cc5ec /src/cpu/simple/timing.cc | |
parent | d4342aff4ce347ad8ab5a01fdd41993106cd3ece (diff) | |
download | gem5-fb5fc11da49938660ea22c336964677cdba890e1.tar.xz |
pwr: 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.
Change-Id: I984d1656eb0a4863c87ceacd773d2d10de5cfd2b
Diffstat (limited to 'src/cpu/simple/timing.cc')
-rw-r--r-- | src/cpu/simple/timing.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/simple/timing.cc b/src/cpu/simple/timing.cc index 6b63d894f..515d6b23c 100644 --- a/src/cpu/simple/timing.cc +++ b/src/cpu/simple/timing.cc @@ -218,6 +218,8 @@ TimingSimpleCPU::activateContext(ThreadID thread_num) == activeThreads.end()) { activeThreads.push_back(thread_num); } + + BaseCPU::activateContext(thread_num); } @@ -243,6 +245,8 @@ TimingSimpleCPU::suspendContext(ThreadID thread_num) deschedule(fetchEvent); } } + + BaseCPU::suspendContext(thread_num); } bool |