powercap.cpp (b5ca101530dc5fa0992d00ab36edb292519cef94) powercap.cpp (bcef3b4870bd93e6350f952706861bfac79982f4)
1#include <phosphor-logging/log.hpp>
2#include <powercap.hpp>
3
4#include <cassert>
5#include <regex>
6
7namespace open_power
8{

--- 8 unchanged lines hidden (view full) ---

17constexpr auto MAPPER_BUSNAME = "xyz.openbmc_project.ObjectMapper";
18constexpr auto MAPPER_PATH = "/xyz/openbmc_project/object_mapper";
19constexpr auto MAPPER_INTERFACE = "xyz.openbmc_project.ObjectMapper";
20
21constexpr auto POWER_CAP_PROP = "PowerCap";
22constexpr auto POWER_CAP_ENABLE_PROP = "PowerCapEnable";
23
24using namespace phosphor::logging;
1#include <phosphor-logging/log.hpp>
2#include <powercap.hpp>
3
4#include <cassert>
5#include <regex>
6
7namespace open_power
8{

--- 8 unchanged lines hidden (view full) ---

17constexpr auto MAPPER_BUSNAME = "xyz.openbmc_project.ObjectMapper";
18constexpr auto MAPPER_PATH = "/xyz/openbmc_project/object_mapper";
19constexpr auto MAPPER_INTERFACE = "xyz.openbmc_project.ObjectMapper";
20
21constexpr auto POWER_CAP_PROP = "PowerCap";
22constexpr auto POWER_CAP_ENABLE_PROP = "PowerCapEnable";
23
24using namespace phosphor::logging;
25namespace fs = std::experimental::filesystem;
25namespace fs = std::filesystem;
26
27uint32_t PowerCap::getOccInput(uint32_t pcap, bool pcapEnabled)
28{
29 if (!pcapEnabled)
30 {
31 // Pcap disabled, return 0 to indicate disabled
32 return 0;
33 }

--- 151 unchanged lines hidden ---
26
27uint32_t PowerCap::getOccInput(uint32_t pcap, bool pcapEnabled)
28{
29 if (!pcapEnabled)
30 {
31 // Pcap disabled, return 0 to indicate disabled
32 return 0;
33 }

--- 151 unchanged lines hidden ---