From: Aristeu Sergio Rozanski Filho <aris@valeta.org>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: [PATCH] nvidiafb: don't use bl_mutex in nvidiafb_blank()
Date: Mon, 3 Jul 2006 22:39:58 -0300 [thread overview]
Message-ID: <20060704013958.GI27596@cathedrallabs.org> (raw)
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
reply other threads:[~2006-07-04 1:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060704013958.GI27596@cathedrallabs.org \
--to=aris@valeta.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).