#
dfddd648 |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Ica590f8613f1fb89ab1ca676ac51c1cc7e38d67f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
5e15c3ba |
| 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I3e9e6350864ac267819a4b8d670bef7d3746976e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
61b73296 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I152f141a5e8343b92b5ce81d3ca16eec77b5606b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
3e1bb274 |
| 26-May-2020 |
Matthew Barth <msbarth@us.ibm.com> |
control: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang format.
Tested: Compiled
Change-Id: Ic9d621d7c5647bde0a92c5f17938c99deeca0512 Signed-off-by: Ma
control: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang format.
Tested: Compiled
Change-Id: Ic9d621d7c5647bde0a92c5f17938c99deeca0512 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
9ca6065c |
| 10-Feb-2020 |
Matthew Barth <msbarth@us.ibm.com> |
control: Move functions to be templated
While testing the sensor type change from int64 to double, it was found there were some fan control actions that were not templated to support different data
control: Move functions to be templated
While testing the sensor type change from int64 to double, it was found there were some fan control actions that were not templated to support different data types that could be configured to be used in those actions. Moving these to be templated allows any supported property type to be used within these actions.
Tested: Using different property types result in actions functioning correctly No impact to still using an int64 as the data type to these actions
Change-Id: I95274e4a1a4cf2ccacb089416eb01cd42e114caf Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
014f07c7 |
| 30-May-2019 |
Matthew Barth <msbarth@us.ibm.com> |
Fan floor by median sensor value within a range
Add action to set the floor speed based on sensors from within a defined valid range and using their median value. The floor speed is selected from th
Fan floor by median sensor value within a range
Add action to set the floor speed based on sensors from within a defined valid range and using their median value. The floor speed is selected from the first map key entry that the median value is less than where 3 or more sensor values are valid. In the case where less than 3 sensor values are valid, use the highest valid value and default the floor speed when 0 sensor values are valid.
Tested: Configured wspoon with this action & correct floor resulted: Sensor value invalidated outside of range Single valid ambient sensor Default floor with no valid sensors(kill ambient service) Highest value used w/ 2 valid sensors Middle value used w/ odd number of valid sensors(median) Average value of middle two valid sensors w/ even number(median)
Change-Id: Ia1599ff13e25dbd7caa7b02c9340cc3e1e9947c6 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
e7d53896 |
| 12-Dec-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Remove service name checking
The action to call other actions based on a timer should not include checking services that do not have an owner.
Change-Id: Ia4a49a7fb3559ec92f9b2d139f5999dbd05c3ead S
Remove service name checking
The action to call other actions based on a timer should not include checking services that do not have an owner.
Change-Id: Ia4a49a7fb3559ec92f9b2d139f5999dbd05c3ead Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
d7b716a6 |
| 16-Nov-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Add/Remove event timers by event name
Using the event name as the key, each timer an event adds to the list of timers are associated to that event. This allows quick removal of those timers when the
Add/Remove event timers by event name
Using the event name as the key, each timer an event adds to the list of timers are associated to that event. This allows quick removal of those timers when the event is removed and more efficient searching for a timer within the smaller list of timers per event name.
Change-Id: I4624918d3a3bbe2a5224cde4bc3fc529e5b40df3 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
146b7390 |
| 08-Mar-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Convert event group to a vector of tuples
In preparation for storing each event group member's property state used within the event's actions, the group type should be converted to a vector of tuple
Convert event group to a vector of tuples
In preparation for storing each event group member's property state used within the event's actions, the group type should be converted to a vector of tuples. This vector will allow, if user defines, easier use of different interfaces and properties on the same path to be used within the same event group.
Tested: Generated code for groups reflects vector instead of map Actions against groups remain unchanged
Change-Id: I9f4bb609de424d9004d43524fd04737a50fb2c6f Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
8fd879fb |
| 30-Oct-2018 |
William A. Kennington III <wak@google.com> |
Remove timer in favor of sdeventplus/utility/timer
This removes the custom timer implementation and moves to the sdeventplus utility. Functionally this should make no change
Tested: Built and r
Remove timer in favor of sdeventplus/utility/timer
This removes the custom timer implementation and moves to the sdeventplus utility. Functionally this should make no change
Tested: Built and run through the unit test suite.
Change-Id: Ib7ee90d489d5db72496aaaca91c3cf5490ad47d6 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
94fe1a0c |
| 30-Oct-2018 |
William A. Kennington III <wak@google.com> |
control/zone: Refactor addTimer
Anything adding a timer uses roughly the same process of building the event data and timer from the event group, actions, and timer config. We can adjust the method t
control/zone: Refactor addTimer
Anything adding a timer uses roughly the same process of building the event data and timer from the event group, actions, and timer config. We can adjust the method to do this for all callers.
Tested: Builds and passes unit tests.
Change-Id: I4013ff2f7bff65095a6e1db7075bc013da374f51 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
122b843f |
| 30-Oct-2018 |
William A. Kennington III <wak@google.com> |
control: Rename Timer -> TimerConf
It is confusing to read some of the type definitions that deal with timers when Timer could mean a timer instantiation or a set of timer configuration parameters.
control: Rename Timer -> TimerConf
It is confusing to read some of the type definitions that deal with timers when Timer could mean a timer instantiation or a set of timer configuration parameters. This change disambiguates the two types.
Tested: Built and run through unit tests.
Change-Id: I9dd6b47886747d56a86b6a50eb9a74a331d0a1fe Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
1cfc2f11 |
| 19-Oct-2018 |
William A. Kennington III <wak@google.com> |
Switch sd_event loops to sdeventplus
This change is mostly focused around plumbing the sdeventplus::Event object everywhere and using the member functions provided for the event. No migration to the
Switch sd_event loops to sdeventplus
This change is mostly focused around plumbing the sdeventplus::Event object everywhere and using the member functions provided for the event. No migration to the timer utility is performed yet.
Change-Id: I912ab82bc081239d3b7c3cf7c5caca6742ef9c87 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
34a389e6 |
| 07-Nov-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Use in place init of event data
Change-Id: Ia56acbeaa89423060e65e50eff8accffec5a4631 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
|
#
480787c1 |
| 06-Nov-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Refresh service states for a group
Prior to an action resulting from missing service owners, all of the services for a group should be refreshed to ensure they are in the most up-to-date state. Ensu
Refresh service states for a group
Prior to an action resulting from missing service owners, all of the services for a group should be refreshed to ensure they are in the most up-to-date state. Ensuring the service states are current allows the action to be correctly taken since owners of services could change at anytime.
Change-Id: I59c59c6fcf456fa9c0a733d6406c90ea11f6e2b2 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
0decd1bd |
| 24-Oct-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Set fan speed on missing owner action
Sets the zone's fan speeds to a given speed when any service owner associated with an event group is missing. Once all the services are functional and providing
Set fan speed on missing owner action
Sets the zone's fan speeds to a given speed when any service owner associated with an event group is missing. Once all the services are functional and providing the event data again, active fan speed changes are allowed.
Change-Id: I318f6114c8d0392432c421f803db07a4683d1097 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
98726c45 |
| 17-Oct-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Set floor to default on missing owner action
An action to set the fan floor speed to the defined default fan floor speed when any services associated to a given group of sensors have terminated. Onc
Set floor to default on missing owner action
An action to set the fan floor speed to the defined default fan floor speed when any services associated to a given group of sensors have terminated. Once those services are functional and providing the sensors, the fan floor is allowed to be set normally again.
i.e.) For fan floor speeds based on an ambient sensor, if the service providing the ambient temperature value from the sensor terminates, the default floor for the zone is used as the fan floor speed.
Change-Id: I2d58cc9b31051e6b8e5e798c0a736f58f5efe5b1 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
2a646c5f |
| 05-Oct-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Action that creates/starts a timer
Another action is provided to the timer and is performed when the timer expires.
Change-Id: Ie6a06b0d56272a158d74bf03287183f07f00aed8 Signed-off-by: Matthew Barth
Action that creates/starts a timer
Another action is provided to the timer and is performed when the timer expires.
Change-Id: Ie6a06b0d56272a158d74bf03287183f07f00aed8 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
b280bfa4 |
| 15-Sep-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Create set request speed base action function
This action function is intended to allow the base request speed to be set to the max value from a group of properties. The base request speed is the ba
Create set request speed base action function
This action function is intended to allow the base request speed to be set to the max value from a group of properties. The base request speed is the base speed used in requesting a new target speed. By default, the base request speed is the current target speed.
For example, this action can be used to set the base request speed used in calculating a new target speed to be based on the max tach feedback speed from a group of fans instead of the current target speed.
Adding this action function requires the other non-template functions to also be slightly modified due to linker errors.
Change-Id: Ibbe9b33678b10cb49466174088a587b27bf56d62 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|