| From aaa8b0586726cb7dab0c5084f0493bb669d53d9d Mon Sep 17 00:00:00 2001 |
| From: Ingo Molnar <mingo@elte.hu> |
| Date: Fri, 3 Jul 2009 08:30:15 -0500 |
| Subject: [PATCH] console: rt support |
| |
| commit 76a0a41f5ee87263c88f83798eeeed5015fd720f in tip. |
| |
| Signed-off-by: Ingo Molnar <mingo@elte.hu> |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| |
| diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c |
| index 3681c6a..e037da3 100644 |
| --- a/drivers/video/console/fbcon.c |
| +++ b/drivers/video/console/fbcon.c |
| @@ -3225,6 +3225,7 @@ static const struct consw fb_con = { |
| .con_screen_pos = fbcon_screen_pos, |
| .con_getxy = fbcon_getxy, |
| .con_resize = fbcon_resize, |
| + .con_preemptible = 1, |
| }; |
| |
| static struct notifier_block fbcon_event_notifier = { |
| diff --git a/include/linux/console.h b/include/linux/console.h |
| index dcca533..7c2c9ae 100644 |
| --- a/include/linux/console.h |
| +++ b/include/linux/console.h |
| @@ -55,6 +55,7 @@ struct consw { |
| void (*con_invert_region)(struct vc_data *, u16 *, int); |
| u16 *(*con_screen_pos)(struct vc_data *, int); |
| unsigned long (*con_getxy)(struct vc_data *, unsigned long, int *, int *); |
| + int con_preemptible; // can it reschedule from within printk? |
| }; |
| |
| extern const struct consw *conswitchp; |
| -- |
| 1.7.1.1 |
| |