Commit 3919c08c authored by Carla Guillen Carias's avatar Carla Guillen Carias

Removing init. Not needed here.

parent 699ff368
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment