Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86:intel/pmc: Remove redundant has_die_c6 variable

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>

authored by

Xi Pardee and committed by
Ilpo Järvinen
1c72d9c3 c2bc11f1

+1 -4
+1 -3
drivers/platform/x86/intel/pmc/core.c
··· 1316 1316 } 1317 1317 1318 1318 pmcdev->punit_ep = ep; 1319 - 1320 - pmcdev->has_die_c6 = true; 1321 1319 pmcdev->die_c6_offset = MTL_PMT_DMU_DIE_C6_OFFSET; 1322 1320 } 1323 1321 ··· 1435 1437 pmcdev->dbgfs_dir, primary_pmc, &pmc_core_pson_residency); 1436 1438 } 1437 1439 1438 - if (pmcdev->has_die_c6) { 1440 + if (pmcdev->punit_ep) { 1439 1441 debugfs_create_file("die_c6_us_show", 0444, 1440 1442 pmcdev->dbgfs_dir, pmcdev, 1441 1443 &pmc_core_die_c6_us_fops);
-1
drivers/platform/x86/intel/pmc/core.h
··· 468 468 u64 *pkgc_res_cnt; 469 469 u8 num_of_pkgc; 470 470 471 - bool has_die_c6; 472 471 u32 die_c6_offset; 473 472 struct telem_endpoint *punit_ep; 474 473 struct pmc_info *regmap_list;