[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-b434a680a29424856e0f40199daa9f65963c7cb4@git.kernel.org>
Date: Sat, 14 Nov 2009 00:10:15 GMT
From: tip-bot for Matthew Garrett <mjg@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, mjg@...hat.com, hpa@...or.com,
mingo@...hat.com, tglx@...utronix.de
Subject: [tip:x86/setup] vgacon: Add support for setting the default cursor state
Commit-ID: b434a680a29424856e0f40199daa9f65963c7cb4
Gitweb: http://git.kernel.org/tip/b434a680a29424856e0f40199daa9f65963c7cb4
Author: Matthew Garrett <mjg@...hat.com>
AuthorDate: Fri, 13 Nov 2009 14:57:02 -0500
Committer: H. Peter Anvin <hpa@...or.com>
CommitDate: Fri, 13 Nov 2009 15:55:02 -0800
vgacon: Add support for setting the default cursor state
Pass the vga cursor state to the vt layer, ensuring that we don't hide
the cursor when the bootloader has deliberately disabled it.
Signed-off-by: Matthew Garrett <mjg@...hat.com>
LKML-Reference: <1258142222-16092-3-git-send-email-mjg@...hat.com>
Signed-off-by: H. Peter Anvin <hpa@...or.com>
---
drivers/video/console/vgacon.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 564643e..cc4bbbe 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -586,7 +586,10 @@ static void vgacon_init(struct vc_data *c, int init)
if (!vgacon_uni_pagedir[0] && p)
con_set_default_unimap(c);
- hide_boot_cursor(screen_info.flags & VIDEO_FLAGS_NOCURSOR);
+ /* Only set the default if the user didn't deliberately override it */
+ if (global_cursor_default == -1)
+ global_cursor_default =
+ !(screen_info.flags & VIDEO_FLAGS_NOCURSOR);
}
static void vgacon_deinit(struct vc_data *c)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists