HomeClusterLabs Projects

Refactor: daemons: Move throttling code into libcrmcommon
0ceb66e92d80Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: daemons: Move throttling code into libcrmcommon

The two functions used by the control daemon can be made private
functions, with their bodies guarded by HAVE_LINUX_PROCFS. The static
functions those call can move as well and remain static.

The control daemon can get rid of the guards since the throttling
functions will return defaults if procfs isn't supported, and the
callers are set up to handle that possibility.

Fix T385

Details

Provenance
clumensAuthored on Fri, Nov 15, 2:58 PM
Parents
rP19454357abb8: Refactor: daemons: Improve code formatting in throttle functions.
Branches
Unknown
Tags
Unknown

Event Timeline