#include <linux/acpi.h>
#include <linux/workqueue.h>
#include "pmf.h"
static struct auto_mode_mode_config config_store;
static const char *state_as_str(unsigned int state);
#ifdef CONFIG_AMD_PMF_DEBUG
static void amd_pmf_dump_auto_mode_defaults(struct auto_mode_mode_config *data)
{ … }
#else
static void amd_pmf_dump_auto_mode_defaults(struct auto_mode_mode_config *data) {}
#endif
static void amd_pmf_set_automode(struct amd_pmf_dev *dev, int idx,
struct auto_mode_mode_config *table)
{ … }
static int amd_pmf_get_moving_avg(struct amd_pmf_dev *pdev, int socket_power)
{ … }
void amd_pmf_trans_automode(struct amd_pmf_dev *dev, int socket_power, ktime_t time_elapsed_ms)
{ … }
void amd_pmf_update_2_cql(struct amd_pmf_dev *dev, bool is_cql_event)
{ … }
static void amd_pmf_get_power_threshold(void)
{ … }
static const char *state_as_str(unsigned int state)
{ … }
static void amd_pmf_load_defaults_auto_mode(struct amd_pmf_dev *dev)
{ … }
int amd_pmf_reset_amt(struct amd_pmf_dev *dev)
{ … }
void amd_pmf_handle_amt(struct amd_pmf_dev *dev)
{ … }
void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev)
{ … }
void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev)
{ … }