Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
scheduler
governor
conservativeGovernor.h
Go to the documentation of this file.
1
10
#ifndef CONSERVATIVEGOVERNOR_H
11
#define CONSERVATIVEGOVERNOR_H
12
13
#include "
freqGovernor.h
"
14
15
namespace
Scheduler
16
{
17
18
19
class
Queue;
20
21
class
ConservativeGovernor
:
public
FreqGovernor
22
{
23
public
:
24
static
constexpr
const
char
*
configKey
=
"conservativeGovernor"
;
25
public
:
26
ConservativeGovernor
();
27
~ConservativeGovernor
(){};
28
void
updateFreq
(
Processor
*proc,
Queue
*readyQueue);
29
bool
freqChangeEvent
(
TriggeringEvent
trigger);
30
std::string
getName
();
31
private
:
32
const
double
maxFreq;
33
const
double
minFreq;
34
35
const
double
samplingRate{10};
/*FIXME This is pretty much useless here for the moment*/
36
const
double
upThreshold{0.95};
37
const
double
downThreshold{0.75};
/*what value?*/
38
const
double
samplingDownFactor{1.0};
39
const
double
powersaveBias{0.0};
40
const
double
freqStep {0.05};
41
};
42
43
}
44
#endif
Scheduler::TriggeringEvent
TriggeringEvent
Definition:
eventType.h:16
Scheduler::ConservativeGovernor::ConservativeGovernor
ConservativeGovernor()
Definition:
conservativeGovernor.cpp:22
Scheduler::Queue
This class implements the ready queue and the wait queue. Those queues contain processes ready to run...
Definition:
queue.h:28
Scheduler::ConservativeGovernor::freqChangeEvent
bool freqChangeEvent(TriggeringEvent trigger)
Definition:
conservativeGovernor.cpp:42
Scheduler::ConservativeGovernor::getName
std::string getName()
Definition:
conservativeGovernor.cpp:47
freqGovernor.h
Scheduler::Processor
Definition:
processor.h:28
Scheduler::FreqGovernor
Definition:
freqGovernor.h:24
Scheduler::ConservativeGovernor::~ConservativeGovernor
~ConservativeGovernor()
Definition:
conservativeGovernor.h:27
Scheduler::ConservativeGovernor::updateFreq
void updateFreq(Processor *proc, Queue *readyQueue)
Definition:
conservativeGovernor.cpp:27
Scheduler::ConservativeGovernor::configKey
static constexpr const char * configKey
Definition:
conservativeGovernor.h:24
Scheduler
Definition:
schedulerActions.h:21
Scheduler::ConservativeGovernor
Definition:
conservativeGovernor.h:21
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11