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.

acpi/hmat: Remove now unused hmat_update_target_coordinates()

Remove deadcode since CXL no longer calls hmat_update_target_coordinates().

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20250829222907.1290912-5-dave.jiang@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>

-48
-28
drivers/acpi/numa/hmat.c
··· 367 367 } 368 368 } 369 369 370 - int hmat_update_target_coordinates(int nid, struct access_coordinate *coord, 371 - enum access_coordinate_class access) 372 - { 373 - struct memory_target *target; 374 - int pxm; 375 - 376 - if (nid == NUMA_NO_NODE) 377 - return -EINVAL; 378 - 379 - pxm = node_to_pxm(nid); 380 - guard(mutex)(&target_lock); 381 - target = find_mem_target(pxm); 382 - if (!target) 383 - return -ENODEV; 384 - 385 - hmat_update_target_access(target, ACPI_HMAT_READ_LATENCY, 386 - coord->read_latency, access); 387 - hmat_update_target_access(target, ACPI_HMAT_WRITE_LATENCY, 388 - coord->write_latency, access); 389 - hmat_update_target_access(target, ACPI_HMAT_READ_BANDWIDTH, 390 - coord->read_bandwidth, access); 391 - hmat_update_target_access(target, ACPI_HMAT_WRITE_BANDWIDTH, 392 - coord->write_bandwidth, access); 393 - 394 - return 0; 395 - } 396 - EXPORT_SYMBOL_GPL(hmat_update_target_coordinates); 397 - 398 370 static __init void hmat_add_locality(struct acpi_hmat_locality *hmat_loc) 399 371 { 400 372 struct memory_locality *loc;
-6
drivers/cxl/core/cdat.c
··· 1075 1075 cxlr->coord[i].write_bandwidth += perf->coord[i].write_bandwidth; 1076 1076 } 1077 1077 } 1078 - 1079 - int cxl_update_hmat_access_coordinates(int nid, struct cxl_region *cxlr, 1080 - enum access_coordinate_class access) 1081 - { 1082 - return hmat_update_target_coordinates(nid, &cxlr->coord[access], access); 1083 - }
-2
drivers/cxl/core/core.h
··· 137 137 138 138 long cxl_pci_get_latency(struct pci_dev *pdev); 139 139 int cxl_pci_get_bandwidth(struct pci_dev *pdev, struct access_coordinate *c); 140 - int cxl_update_hmat_access_coordinates(int nid, struct cxl_region *cxlr, 141 - enum access_coordinate_class access); 142 140 int cxl_port_get_switch_dport_bandwidth(struct cxl_port *port, 143 141 struct access_coordinate *c); 144 142
-12
include/linux/acpi.h
··· 1595 1595 ACPI_COMPANION_SET(dev, ACPI_COMPANION(dev->parent)); 1596 1596 } 1597 1597 1598 - #ifdef CONFIG_ACPI_HMAT 1599 - int hmat_update_target_coordinates(int nid, struct access_coordinate *coord, 1600 - enum access_coordinate_class access); 1601 - #else 1602 - static inline int hmat_update_target_coordinates(int nid, 1603 - struct access_coordinate *coord, 1604 - enum access_coordinate_class access) 1605 - { 1606 - return -EOPNOTSUPP; 1607 - } 1608 - #endif 1609 - 1610 1598 #ifdef CONFIG_ACPI_NUMA 1611 1599 bool acpi_node_backed_by_real_pxm(int nid); 1612 1600 #else