Re: [PATCH v5 1/2] drm/loongson: Introduce component framework support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



…
> +++ b/drivers/gpu/drm/loongson/loongson_drv.c
> @@ -0,0 +1,298 @@
…
> +static int loongson_drm_freeze(struct drm_device *ddev)
> +{
…
> +	/* unpin all of buffers in the VRAM */
> +	mutex_lock(&ldrm->gem.mutex);
…
> +	mutex_unlock(&ldrm->gem.mutex);
> +
> +	lsdc_bo_evict_vram(ddev);
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&ldrm->gem.mutex);”?
https://elixir.bootlin.com/linux/v6.10.2/source/include/linux/mutex.h#L196

Regards,
Markus




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux