20ab67608a
Currently, there is no way to know if the power management env is supported without trying to initialize it. The init API also does not distinguish between failure due to some error and failure due to power management not being available on the platform in the first place. Thus, add an API that provides capability of probing support for a specific power management API. Suggested-by: Jerin Jacob <jerinj@marvell.com> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
14 lines
319 B
C
14 lines
319 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2010-2014 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _POWER_COMMON_H_
|
|
#define _POWER_COMMON_H_
|
|
|
|
#define RTE_POWER_INVALID_FREQ_INDEX (~0)
|
|
|
|
/* check if scaling driver matches one we want */
|
|
int cpufreq_check_scaling_driver(const char *driver);
|
|
|
|
#endif /* _POWER_COMMON_H_ */
|