Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
3919c08c
Commit
3919c08c
authored
Feb 18, 2019
by
Carla Guillen Carias
Browse files
Removing init. Not needed here.
parent
699ff368
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/sensors/msr/MSRSensorGroup.cpp
View file @
3919c08c
...
...
@@ -35,7 +35,7 @@ MSRSensorGroup::MSRSensorGroup(const std::string& name) :
MSRSensorGroup
::~
MSRSensorGroup
()
{
}
void
MSRSensorGroup
::
init
(
boost
::
asio
::
io_service
&
io
)
{
/*
void MSRSensorGroup::init(boost::asio::io_service& io) {
SensorGroupTemplate::init(io);
bool begin = true;
...
...
@@ -59,12 +59,11 @@ void MSRSensorGroup::init(boost::asio::io_service& io) {
s_otherCPUs->setName(s->getName(), kv.first);
s_otherCPUs->setCpu(kv.first);
s_otherCPUs->setMetric(s->getMetric());
// SBasePtr sensorBaseShrd = std::dynamic_pointer_cast<SBasePtr>(s_otherCPUs);
pushBackSensor(s_otherCPUs);
}
}
}
}
}
*/
void
MSRSensorGroup
::
start
()
{
if
(
_keepRunning
)
{
...
...
@@ -171,6 +170,7 @@ void MSRSensorGroup::program_fixed(){
ctrl_reg
.
fields
.
enable_pmi2
=
0
;
ctrl_reg
.
fields
.
reserved1
=
0
;
msr_write
(
IA32_CR_FIXED_CTR_CTRL
,
ctrl_reg
.
value
,
kv
.
first
);
// start counting, enable 3 fixed counters
...
...
src/sensors/msr/MSRSensorGroup.h
View file @
3919c08c
...
...
@@ -26,7 +26,7 @@ public:
void
start
()
override
;
void
stop
()
override
;
void
addCpu
(
unsigned
int
cpu
);
void
init
(
boost
::
asio
::
io_service
&
io
)
override
;
//
void init(boost::asio::io_service& io) override;
private:
void
read
()
override
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment