From 1c34ee20dfbbd557e394d61825232b10c0f3d37f Mon Sep 17 00:00:00 2001 From: Akash Bagdia Date: Tue, 9 Dec 2014 10:42:08 +0000 Subject: 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. --- src/cpu/o3/cpu.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpu/o3') diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index 79ad705bf..73174e4a9 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -735,6 +735,8 @@ FullO3CPU::activateContext(ThreadID tid) lastActivatedCycle = curTick(); _status = Running; + + BaseCPU::activateContext(tid); } } @@ -755,6 +757,8 @@ FullO3CPU::suspendContext(ThreadID tid) } DPRINTF(Quiesce, "Suspending Context\n"); + + BaseCPU::suspendContext(tid); } template -- cgit v1.2.3