Re: [patch 5/6] Convert to use mutexes instead of semaphores
- From: "Dmitry Torokhov" <dmitry.torokhov@xxxxxxxxx>
- Date: Fri, 11 Aug 2006 08:58:53 -0400
On 8/11/06, Dmitry Torokhov <dtor@xxxxxxxxxxxxx> wrote:
Backlight: convert to use mutexes instead of semaphores
Apparently I missed that several drivers also use bd->sem so they need
to be converted too... But what is it with the drivers:
static void aty128_bl_set_power(struct fb_info *info, int power)
{
mutex_lock(&info->bl_mutex);
up(&info->bl_dev->sem);
info->bl_dev->props->power = power;
__aty128_bl_update_status(info->bl_dev);
down(&info->bl_dev->sem);
mutex_unlock(&info->bl_mutex);
}
Why we are doing up() before down()??? And it is in almost every
driver that uses backlight... Do I need more coffee? [CC-ing bunch of
people trying to get an answer...]
--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 5/6] Convert to use mutexes instead of semaphores
- From: Richard Purdie
- Re: [patch 5/6] Convert to use mutexes instead of semaphores
- References:
- [patch 0/6] Backlight & lcd fixes/cleanups
- From: Dmitry Torokhov
- [patch 5/6] Convert to use mutexes instead of semaphores
- From: Dmitry Torokhov
- [patch 0/6] Backlight & lcd fixes/cleanups
- Prev by Date: Re: Re : Re : Re : sparsemem usage
- Next by Date: Re: [Fastboot] [RFC] ELF Relocatable x86 and x86_64 bzImages
- Previous by thread: [patch 5/6] Convert to use mutexes instead of semaphores
- Next by thread: Re: [patch 5/6] Convert to use mutexes instead of semaphores
- Index(es):
Relevant Pages
|
|