Support for syncing power supply input history

When a power supply is hotplugged the code will toggle
a GPIO to cause the power supplies to sync their
input history collection.  This clears out old values
and restarts measurement at the same time zero.

An external service handles this during a power on.

It doesn't need to be done when the application first
starts because it will either be with power off with
uninteresting power values, and a sync will occur on a
power on anyway, or it was a reboot at runtime where
the power supplies are still synced up anyway.

Change-Id: Ic8787c05e163e48ed775ea075f241ffd8d65585e
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2 files changed
tree: f07ad86c0729323a1a82c75c75a98b556f6b6529
  1. org/
  2. power-sequencer/
  3. power-supply/
  4. test/
  5. .gitignore
  6. argument.hpp
  7. bootstrap.sh
  8. configure.ac
  9. device.hpp
  10. device_monitor.hpp
  11. elog-errors.hpp
  12. event.hpp
  13. file.hpp
  14. gpio.cpp
  15. gpio.hpp
  16. LICENSE
  17. Makefile.am
  18. names_values.hpp
  19. pmbus.cpp
  20. pmbus.hpp
  21. README.md
  22. timer.cpp
  23. timer.hpp
  24. utility.cpp
  25. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.