Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mdpGovernor
schedulerActions.cpp
Go to the documentation of this file.
1
10
#include "
schedulerActions.h
"
11
12
#include <memory>
13
#include <stdexcept>
14
15
#include <
scheduler/queue.h
>
16
#include <
scheduler/system.h
>
17
#include <
scheduler/processor.h
>
18
19
#include "
schedulerDomainModel.h
"
20
21
using namespace
MdpGov
;
22
23
std::string
SetMinFreq::getName
()
24
{
25
return
"Set min freq"
;
26
}
27
28
void
SetMinFreq::performAction
()
29
{
30
getModel<SchedulerDomainModel>()->proc->setFreq(getModel<SchedulerDomainModel>()->proc->getMinFreq());
31
}
32
33
std::string
SetMaxFreq::getName
()
34
{
35
return
"SetMaxFreq"
;
36
}
37
38
void
SetMaxFreq::performAction
()
39
{
40
getModel<SchedulerDomainModel>()->proc->setFreq(getModel<SchedulerDomainModel>()->proc->getMaxFreq());
41
42
}
MdpGov::SetMinFreq::performAction
void performAction() override
Definition:
schedulerActions.cpp:28
MdpGov
Definition:
mdpGovernor.h:21
schedulerDomainModel.h
MdpGov::SetMaxFreq::getName
std::string getName() override
Definition:
schedulerActions.cpp:33
schedulerActions.h
queue.h
MdpGov::SetMinFreq::getName
std::string getName() override
Definition:
schedulerActions.cpp:23
processor.h
MdpGov::SetMaxFreq::performAction
void performAction() override
Definition:
schedulerActions.cpp:38
system.h
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11