mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/doc: Add a warning to drm_dev_is_unplugged
It's probably not what you want, definitely not after Noralf's work to add drm_dev_enter/exit. Cc: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Noralf Trønnes <noralf@tronnes.org> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190129085643.16357-1-daniel.vetter@ffwll.ch
This commit is contained in:
parent
78de14c23e
commit
168982d243
1 changed files with 4 additions and 0 deletions
|
@ -643,6 +643,10 @@ void drm_dev_unplug(struct drm_device *dev);
|
|||
* Unplugging itself is singalled through drm_dev_unplug(). If a device is
|
||||
* unplugged, these two functions guarantee that any store before calling
|
||||
* drm_dev_unplug() is visible to callers of this function after it completes
|
||||
*
|
||||
* WARNING: This function fundamentally races against drm_dev_unplug(). It is
|
||||
* recommended that drivers instead use the underlying drm_dev_enter() and
|
||||
* drm_dev_exit() function pairs.
|
||||
*/
|
||||
static inline bool drm_dev_is_unplugged(struct drm_device *dev)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue