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/minor/cpu.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpu/minor') diff --git a/src/cpu/minor/cpu.cc b/src/cpu/minor/cpu.cc index cd39a8b93..a707c6045 100644 --- a/src/cpu/minor/cpu.cc +++ b/src/cpu/minor/cpu.cc @@ -287,6 +287,8 @@ MinorCPU::activateContext(ThreadID thread_id) threads[thread_id]->activate(); wakeupOnEvent(Minor::Pipeline::CPUStageId); pipeline->wakeupFetch(); + + BaseCPU::activateContext(thread_id); } void @@ -295,6 +297,8 @@ MinorCPU::suspendContext(ThreadID thread_id) DPRINTF(MinorCPU, "SuspendContext %d\n", thread_id); threads[thread_id]->suspend(); + + BaseCPU::suspendContext(thread_id); } void -- cgit v1.2.3