Displaying 7 results from an estimated 7 matches for "set_cores".
Did you mean:
getcores
2010 Apr 19
1
[PATCH matahari] Replaces the existing HAL code for ProcessorAgent with udev.
...odel = value;
+ }
+ }
+ }
+ input.close();
+ }
// populate the managed object's values
- management_object->set_model(libhal_device_get_property_string(context, processors[0], "info.product", &dbus_error));
- management_object->set_cores(num_results);
+ management_object->set_model(model);
+ management_object->set_cores(core_count);
}
void
--
1.6.6.1
2010 Apr 21
1
[PATCH matahari] Created a new platform-abstraction layer named Platform.
...- else
- {
- if(name == "model name") model = value;
- }
- }
- }
- input.close();
- }
-
- // populate the managed object's values
- management_object->set_model(model);
- management_object->set_cores(core_count);
+ management_object->set_model(platform->get_processor_model());
+ management_object->set_cores(platform->get_number_of_cores());
}
void
@@ -121,12 +45,5 @@ ProcessorsAgent::update(void) const
void
ProcessorsAgent::update_load_averages(void) const
{
- double load_...
2010 May 19
2
Squashed commits...
Refactoring the previous patch ended up creating two deltas. This
patch pushes them both together into a single commit.
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...sors)
+ throw runtime_error("Error: could not query processors via HAL.");
+
+ // populate the managed object's values
+ management_object->set_model(libhal_device_get_property_string(context, processors[0], "info.product", &dbus_error));
+ management_object->set_cores(num_results);
+}
+
+Manageable::status_t
+ProcessorsAgent::ManagementMethod(uint32_t id, Args& args, string& text)
+{
+ switch(id)
+ {
+ case _qmf::Processors::METHOD_GET_LOAD_AVERAGE:
+ _qmf::ArgsProcessorsGet_load_average& loadavg = (_qmf::ArgsProcessorsGet_load_average&am...
2010 Mar 22
1
Small change and resend...
This patch includes one small change: the Processors::get_load_average()
method is now const since it does not change the object's state.
2010 Mar 22
1
Resend with loadavg as a statistic...
After some feedback from Slow, mainly about the load_average API
being a method rather than an ongoing statistic. So I've converted
the code over to instead update the load average statistic on a
regular basis.
2010 May 24
0
[PATCH matahari] Moves the CPU properties into the Host API space.
...gent()
-{
-}
-
-void
-ProcessorsAgent::setup(ManagementAgent* agent, HostAgent* parent)
-{
- _management_object = new _qmf::Processors(agent, this, parent);
- agent->addObject(_management_object);
-
- _management_object->set_model(this->_processors.getModel());
- _management_object->set_cores(this->_processors.getNumberOfCores());
-}
-
-void
-ProcessorsAgent::updated()
-{
- _management_object->set_load_average(this->_processors.getLoadAverage());
-}
diff --git a/src/qmf/processorsagent.h b/src/qmf/processorsagent.h
deleted file mode 100644
index 1d814d4..0000000
--- a/src/qmf/...