]> git.baikalelectronics.ru Git - kernel.git/commit
fbcon: fix locking harder
authorDave Airlie <airlied@gmail.com>
Fri, 25 Jan 2013 01:38:56 +0000 (11:38 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2013 02:02:43 +0000 (12:02 +1000)
commit9a05a9b8b45c524daaedc10ba7aee21896fc559f
tree9866f12c399f63de3ac285624226b19c0501b191
parent65e4b0dc16bc0f237ec48d4f9f86321480670da3
fbcon: fix locking harder

Okay so Alan's patch handled the case where there was no registered fbcon,
however the other path entered in set_con2fb_map pit.

In there we called fbcon_takeover, but we also took the console lock in a couple
of places. So push the console lock out to the callers of set_con2fb_map,

this means fbmem and switcheroo needed to take the lock around the fb notifier
entry points that lead to this.

This should fix the efifb regression seen by Maarten.

Tested-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Tested-by: Lu Hua <huax.lu@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/vga/vga_switcheroo.c
drivers/video/console/fbcon.c
drivers/video/fbmem.c