@@ -74,7 +74,6 @@ struct memory_target {
7474 struct node_cache_attrs cache_attrs ;
7575 u8 gen_port_device_handle [ACPI_SRAT_DEVICE_HANDLE_SIZE ];
7676 bool registered ;
77- bool ext_updated ; /* externally updated */
7877};
7978
8079struct memory_initiator {
@@ -368,35 +367,6 @@ static void hmat_update_target_access(struct memory_target *target,
368367 }
369368}
370369
371- int hmat_update_target_coordinates (int nid , struct access_coordinate * coord ,
372- enum access_coordinate_class access )
373- {
374- struct memory_target * target ;
375- int pxm ;
376-
377- if (nid == NUMA_NO_NODE )
378- return - EINVAL ;
379-
380- pxm = node_to_pxm (nid );
381- guard (mutex )(& target_lock );
382- target = find_mem_target (pxm );
383- if (!target )
384- return - ENODEV ;
385-
386- hmat_update_target_access (target , ACPI_HMAT_READ_LATENCY ,
387- coord -> read_latency , access );
388- hmat_update_target_access (target , ACPI_HMAT_WRITE_LATENCY ,
389- coord -> write_latency , access );
390- hmat_update_target_access (target , ACPI_HMAT_READ_BANDWIDTH ,
391- coord -> read_bandwidth , access );
392- hmat_update_target_access (target , ACPI_HMAT_WRITE_BANDWIDTH ,
393- coord -> write_bandwidth , access );
394- target -> ext_updated = true;
395-
396- return 0 ;
397- }
398- EXPORT_SYMBOL_GPL (hmat_update_target_coordinates );
399-
400370static __init void hmat_add_locality (struct acpi_hmat_locality * hmat_loc )
401371{
402372 struct memory_locality * loc ;
@@ -773,10 +743,6 @@ static void hmat_update_target_attrs(struct memory_target *target,
773743 u32 best = 0 ;
774744 int i ;
775745
776- /* Don't update if an external agent has changed the data. */
777- if (target -> ext_updated )
778- return ;
779-
780746 /* Don't update for generic port if there's no device handle */
781747 if ((access == NODE_ACCESS_CLASS_GENPORT_SINK_LOCAL ||
782748 access == NODE_ACCESS_CLASS_GENPORT_SINK_CPU ) &&
0 commit comments