On Tue, Feb 20, 2024 at 04:12:31PM -0700, Dave Jiang wrote: > Both generic node and HMAT handling code have been using magic numbers to > indicate access classes for 'struct access_coordinate'. Introduce enums to > enumerate the access0 and access1 classes shared by the two subsystems. > Update the function parameters and callers as appropriate to utilize the > new enum. > > Access0 is named to ACCESS_COORDINATE_LOCAL in order to indicate that the > access class is for 'struct access_coordinate' between a target node and > the nearest initiator node. > > Access1 is named to ACCESS_COORDINATE_CPU in order to indicate that the > access class is for 'struct access_coordinate' between a target node and > the nearest CPU node. > > Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > Cc: Rafael J. Wysocki <rafael@xxxxxxxxxx> > Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> > Signed-off-by: Dave Jiang <dave.jiang@xxxxxxxxx> Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>