]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: vboxvideo: Move bo_[un]resere calls into vbox_bo_[un]pin
authorHans de Goede <hdegoede@redhat.com>
Tue, 18 Sep 2018 17:44:37 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 10:32:05 +0000 (12:32 +0200)
commitcfc1fc63be447737639dbf90610e7af58d7bd437
tree9e00eb16271b0da605cae5110bd2465deafa5533
parent114094c83ed334524ee1a50bd8c08425f361148b
staging: vboxvideo: Move bo_[un]resere calls into vbox_bo_[un]pin

We always need to reserve the bo around a pin / unpin, so move the
reservation there.

This allows removing the vbox_fb_[un]pin helpers.

Note this means that we now no longer hold the bo reserved while
k[un]mapping it in vbox_fb.c this is fine as it is not necessary
to hold it reserved for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vboxvideo/vbox_drv.h
drivers/staging/vboxvideo/vbox_fb.c
drivers/staging/vboxvideo/vbox_mode.c
drivers/staging/vboxvideo/vbox_ttm.c