* [KJ] [PATCH] - pxafb should use msleep
@ 2005-05-23 22:30 Chuck Short
2005-05-23 22:30 ` Chuck Short
2005-05-24 5:59 ` Domen Puncer
0 siblings, 2 replies; 3+ messages in thread
From: Chuck Short @ 2005-05-23 22:30 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 92 bytes --]
Hi,
This patch changes pxafb to use msleep.
Signed-of-by: Chuck Short <zulcss@gmail.com>
[-- Attachment #2: pxafb-msleep.patch --]
[-- Type: text/x-patch, Size: 735 bytes --]
diff -Naur linux-source-2.6.12-2.6.11.92.orig/drivers/video/pxafb.c linux-source-2.6.12-2.6.11.92/drivers/video/pxafb.c
--- linux-source-2.6.12-2.6.11.92.orig/drivers/video/pxafb.c 2005-04-21 06:39:57.000000000 -0400
+++ linux-source-2.6.12-2.6.11.92/drivers/video/pxafb.c 2005-05-18 12:39:56.942489336 -0400
@@ -740,14 +740,13 @@
DPRINTK("Disabling LCD controller\n");
- set_current_state(TASK_UNINTERRUPTIBLE);
add_wait_queue(&fbi->ctrlr_wait, &wait);
LCSR = 0xffffffff; /* Clear LCD Status Register */
LCCR0 &= ~LCCR0_LDM; /* Enable LCD Disable Done Interrupt */
LCCR0 |= LCCR0_DIS; /* Disable LCD Controller */
- schedule_timeout(20 * HZ / 1000);
+ msleep(20);
remove_wait_queue(&fbi->ctrlr_wait, &wait);
}
[-- Attachment #3: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread* [KJ] [PATCH] - pxafb should use msleep
2005-05-23 22:30 [KJ] [PATCH] - pxafb should use msleep Chuck Short
@ 2005-05-23 22:30 ` Chuck Short
2005-05-24 5:59 ` Domen Puncer
1 sibling, 0 replies; 3+ messages in thread
From: Chuck Short @ 2005-05-23 22:30 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 92 bytes --]
Hi,
This patch changes pxafb to use msleep.
Signed-of-by: Chuck Short <zulcss@gmail.com>
[-- Attachment #2: pxafb-msleep.patch --]
[-- Type: text/x-patch, Size: 735 bytes --]
diff -Naur linux-source-2.6.12-2.6.11.92.orig/drivers/video/pxafb.c linux-source-2.6.12-2.6.11.92/drivers/video/pxafb.c
--- linux-source-2.6.12-2.6.11.92.orig/drivers/video/pxafb.c 2005-04-21 06:39:57.000000000 -0400
+++ linux-source-2.6.12-2.6.11.92/drivers/video/pxafb.c 2005-05-18 12:39:56.942489336 -0400
@@ -740,14 +740,13 @@
DPRINTK("Disabling LCD controller\n");
- set_current_state(TASK_UNINTERRUPTIBLE);
add_wait_queue(&fbi->ctrlr_wait, &wait);
LCSR = 0xffffffff; /* Clear LCD Status Register */
LCCR0 &= ~LCCR0_LDM; /* Enable LCD Disable Done Interrupt */
LCCR0 |= LCCR0_DIS; /* Disable LCD Controller */
- schedule_timeout(20 * HZ / 1000);
+ msleep(20);
remove_wait_queue(&fbi->ctrlr_wait, &wait);
}
[-- Attachment #3: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [KJ] [PATCH] - pxafb should use msleep
2005-05-23 22:30 [KJ] [PATCH] - pxafb should use msleep Chuck Short
2005-05-23 22:30 ` Chuck Short
@ 2005-05-24 5:59 ` Domen Puncer
1 sibling, 0 replies; 3+ messages in thread
From: Domen Puncer @ 2005-05-24 5:59 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
On 23/05/05 18:30 -0400, Chuck Short wrote:
> Hi,
>
> This patch changes pxafb to use msleep.
>
> Signed-of-by: Chuck Short <zulcss@gmail.com>
>
> diff -Naur linux-source-2.6.12-2.6.11.92.orig/drivers/video/pxafb.c linux-source-2.6.12-2.6.11.92/drivers/video/pxafb.c
> --- linux-source-2.6.12-2.6.11.92.orig/drivers/video/pxafb.c 2005-04-21 06:39:57.000000000 -0400
> +++ linux-source-2.6.12-2.6.11.92/drivers/video/pxafb.c 2005-05-18 12:39:56.942489336 -0400
> @@ -740,14 +740,13 @@
>
> DPRINTK("Disabling LCD controller\n");
>
> - set_current_state(TASK_UNINTERRUPTIBLE);
> add_wait_queue(&fbi->ctrlr_wait, &wait);
>
> LCSR = 0xffffffff; /* Clear LCD Status Register */
> LCCR0 &= ~LCCR0_LDM; /* Enable LCD Disable Done Interrupt */
> LCCR0 |= LCCR0_DIS; /* Disable LCD Controller */
>
> - schedule_timeout(20 * HZ / 1000);
> + msleep(20);
> remove_wait_queue(&fbi->ctrlr_wait, &wait);
Sorry, but msleep() in not waitqueue friendly, it won't wake_up().
Domen
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-24 5:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23 22:30 [KJ] [PATCH] - pxafb should use msleep Chuck Short
2005-05-23 22:30 ` Chuck Short
2005-05-24 5:59 ` Domen Puncer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.