search for: vgacon_init

Displaying 1 result from an estimated 1 matches for "vgacon_init".

Did you mean: vgacon_deinit
2009 Sep 15
1
[PATCH] vgacon: Prevent vgacon_deinit from touching the hardware for inactive consoles.
.../console/vgacon.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c index 59d7d5e..6bd75a9 100644 --- a/drivers/video/console/vgacon.c +++ b/drivers/video/console/vgacon.c @@ -590,12 +590,14 @@ static void vgacon_init(struct vc_data *c, int init) static void vgacon_deinit(struct vc_data *c) { - /* When closing the last console, reset video origin */ - if (!--vgacon_uni_pagedir[1]) { + /* When closing the active console, reset video origin */ + if (CON_IS_VISIBLE(c)) { c->vc_visible_origin = vga_vram_ba...