* [PATCH] nvidiafb: don't use bl_mutex in nvidiafb_blank()
@ 2006-07-04 1:39 Aristeu Sergio Rozanski Filho
0 siblings, 0 replies; only message in thread
From: Aristeu Sergio Rozanski Filho @ 2006-07-04 1:39 UTC (permalink / raw)
To: linux-fbdev-devel
nvidiafb: remove usage of bl_mutex from nvidiafb_blank()
struct fb_info bl_mutex is used to protect bl_curve[] only, not needed in
nvidiafb_blank() and will cause a recursive mutex locking in
nvidia_bl_get_level_brightness()
Signed-off-by: Aristeu S. Rozanski F. <aris@valeta.org>
Index: ppc-2.6/drivers/video/nvidia/nvidia.c
===================================================================
--- ppc-2.6.orig/drivers/video/nvidia/nvidia.c 2006-07-03 20:08:07.000000000 -0300
+++ ppc-2.6/drivers/video/nvidia/nvidia.c 2006-07-03 20:08:16.000000000 -0300
@@ -934,14 +934,12 @@
NVWriteCrtc(par, 0x1a, vesa);
#ifdef CONFIG_FB_NVIDIA_BACKLIGHT
- mutex_lock(&info->bl_mutex);
if (info->bl_dev) {
down(&info->bl_dev->sem);
info->bl_dev->props->power = blank;
info->bl_dev->props->update_status(info->bl_dev);
up(&info->bl_dev->sem);
}
- mutex_unlock(&info->bl_mutex);
#endif
NVTRACE_LEAVE();
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-04 1:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04 1:39 [PATCH] nvidiafb: don't use bl_mutex in nvidiafb_blank() Aristeu Sergio Rozanski Filho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).