[PATCH v4 05/13] drm/amdkfd: generic type as sys mem on migration to ram

Christoph Hellwig hch at lst.de
Mon Jul 19 09:17:38 UTC 2021


On Sat, Jul 17, 2021 at 02:21:27PM -0500, Alex Sierra wrote:
> +	migrate.flags = adev->gmc.xgmi.connected_to_cpu ?
> +			MIGRATE_VMA_SELECT_SYSTEM : MIGRATE_VMA_SELECT_DEVICE_PRIVATE;

Please just use a good old if/else to keep the code readable.


More information about the amd-gfx mailing list