]> git.baikalelectronics.ru Git - kernel.git/commit
fb: convert lock/unlock_kernel() into local fb mutex
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Sun, 19 Oct 2008 03:27:51 +0000 (20:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:36 +0000 (08:52 -0700)
commit75ff9d73b579483b50d2d6c0b632b9370c015d0d
tree389c2a60625b2f9dbd9555378a9d4917730f335e
parentd72478f040ea78d18c906120535eb2953ec71441
fb: convert lock/unlock_kernel() into local fb mutex

Change lock_kernel()/unlock_kernel() to local fb mutex.  Each frame buffer
instance has its own mutex.

The one line try_to_load() function is unrolled to request_module() in two
places for readability.

[righi.andrea@gmail.com: fb: fix NULL pointer BUG dereference in fb_open()]
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/fbmem.c
include/linux/fb.h