activity.hh (7813:7338bc628489) | activity.hh (8229:78bf55f23338) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Kevin Lim 29 */ 30 31#ifndef __CPU_ACTIVITY_HH__ 32#define __CPU_ACTIVITY_HH__ 33 | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Kevin Lim 29 */ 30 31#ifndef __CPU_ACTIVITY_HH__ 32#define __CPU_ACTIVITY_HH__ 33 |
34#include "cpu/timebuf.hh" | |
35#include "base/trace.hh" | 34#include "base/trace.hh" |
35#include "cpu/timebuf.hh" |
|
36 37/** 38 * ActivityRecorder helper class that informs the CPU if it can switch 39 * over to being idle or not. It works by having a time buffer as 40 * long as any time buffer in the CPU, and the CPU and all of its 41 * stages inform the ActivityRecorder when they write to any time 42 * buffer. The ActivityRecorder marks a 1 in the "0" slot of the time 43 * buffer any time a stage writes to a time buffer, and it advances --- 89 unchanged lines hidden --- | 36 37/** 38 * ActivityRecorder helper class that informs the CPU if it can switch 39 * over to being idle or not. It works by having a time buffer as 40 * long as any time buffer in the CPU, and the CPU and all of its 41 * stages inform the ActivityRecorder when they write to any time 42 * buffer. The ActivityRecorder marks a 1 in the "0" slot of the time 43 * buffer any time a stage writes to a time buffer, and it advances --- 89 unchanged lines hidden --- |