]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86:intel/pmc: Remove redundant has_die_c6 variable
authorXi Pardee <xi.pardee@linux.intel.com>
Tue, 14 Oct 2025 21:45:34 +0000 (14:45 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Oct 2025 09:21:18 +0000 (12:21 +0300)
Remove has_die_c6 variable from the pmc_dev struct. This variable
is unnecessary as the availability of die C6 could be inferred by
the punit_ep variable.

Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
Link: https://patch.msgid.link/20251014214548.629023-7-xi.pardee@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/pmc/core.c
drivers/platform/x86/intel/pmc/core.h

index e272c971d73a5389d221fb2647474d0f77df6be7..7d7ae8a40b0eca71e07d9b69b2dbc8752f8c42f6 100644 (file)
@@ -1316,8 +1316,6 @@ void pmc_core_punit_pmt_init(struct pmc_dev *pmcdev, u32 *guids)
        }
 
        pmcdev->punit_ep = ep;
-
-       pmcdev->has_die_c6 = true;
        pmcdev->die_c6_offset = MTL_PMT_DMU_DIE_C6_OFFSET;
 }
 
@@ -1437,7 +1435,7 @@ static void pmc_core_dbgfs_register(struct pmc_dev *pmcdev, struct pmc_dev_info
                                    pmcdev->dbgfs_dir, primary_pmc, &pmc_core_pson_residency);
        }
 
-       if (pmcdev->has_die_c6) {
+       if (pmcdev->punit_ep) {
                debugfs_create_file("die_c6_us_show", 0444,
                                    pmcdev->dbgfs_dir, pmcdev,
                                    &pmc_core_die_c6_us_fops);
index cccd3bcafe00de7fd4c34ac8ca128f3c3b4e2504..61c8d3c5faa0f9f0ddd973f15b139d121f9141aa 100644 (file)
@@ -468,7 +468,6 @@ struct pmc_dev {
        u64 *pkgc_res_cnt;
        u8 num_of_pkgc;
 
-       bool has_die_c6;
        u32 die_c6_offset;
        struct telem_endpoint *punit_ep;
        struct pmc_info *regmap_list;