mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-29 23:53:10 -05:00
Merge tag 'pm-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fix from Rafael Wysocki: "Fix a sparse warning triggered by the TPMI interface recently added to the Intel RAPL power capping driver (Zhang Rui)" * tag 'pm-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: powercap: intel_rapl: Fix a sparse warning in TPMI interface
This commit is contained in:
@@ -100,10 +100,16 @@ struct rapl_package;
|
||||
|
||||
#define RAPL_DOMAIN_NAME_LENGTH 16
|
||||
|
||||
union rapl_reg {
|
||||
void __iomem *mmio;
|
||||
u32 msr;
|
||||
u64 val;
|
||||
};
|
||||
|
||||
struct rapl_domain {
|
||||
char name[RAPL_DOMAIN_NAME_LENGTH];
|
||||
enum rapl_domain_type id;
|
||||
u64 regs[RAPL_DOMAIN_REG_MAX];
|
||||
union rapl_reg regs[RAPL_DOMAIN_REG_MAX];
|
||||
struct powercap_zone power_zone;
|
||||
struct rapl_domain_data rdd;
|
||||
struct rapl_power_limit rpl[NR_POWER_LIMITS];
|
||||
@@ -116,7 +122,7 @@ struct rapl_domain {
|
||||
};
|
||||
|
||||
struct reg_action {
|
||||
u64 reg;
|
||||
union rapl_reg reg;
|
||||
u64 mask;
|
||||
u64 value;
|
||||
int err;
|
||||
@@ -143,8 +149,8 @@ struct rapl_if_priv {
|
||||
enum rapl_if_type type;
|
||||
struct powercap_control_type *control_type;
|
||||
enum cpuhp_state pcap_rapl_online;
|
||||
u64 reg_unit;
|
||||
u64 regs[RAPL_DOMAIN_MAX][RAPL_DOMAIN_REG_MAX];
|
||||
union rapl_reg reg_unit;
|
||||
union rapl_reg regs[RAPL_DOMAIN_MAX][RAPL_DOMAIN_REG_MAX];
|
||||
int limits[RAPL_DOMAIN_MAX];
|
||||
int (*read_raw)(int id, struct reg_action *ra);
|
||||
int (*write_raw)(int id, struct reg_action *ra);
|
||||
|
||||
Reference in New Issue
Block a user