aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/console
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2006-12-08 05:40:29 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:29:06 -0500
commit0128beeee8749e3cb01c27ef9d1da217f5d7b3b8 (patch)
treece206dd5f8d32258a5e9ffdb3f1197e210cca7f0 /drivers/video/console
parentd95159cf1b12e8e4b169094b35cbd93b887cb939 (diff)
[PATCH] constify and annotate __read_mostly in vgacon.c and fbmem.c
- annotate some variables from vgacon.c and fbmem.c as __read_mostly - move the mask[] array in fb_set_logo_truepalette() into the .rodata section Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/console')
-rw-r--r--drivers/video/console/vgacon.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 0a2c10a1abf8..4a9bde2c839b 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -93,27 +93,27 @@ static void vgacon_invert_region(struct vc_data *c, u16 * p, int count);
93static unsigned long vgacon_uni_pagedir[2]; 93static unsigned long vgacon_uni_pagedir[2];
94 94
95/* Description of the hardware situation */ 95/* Description of the hardware situation */
96static unsigned long vga_vram_base; /* Base of video memory */ 96static int vga_init_done __read_mostly;
97static unsigned long vga_vram_end; /* End of video memory */ 97static unsigned long vga_vram_base __read_mostly; /* Base of video memory */
98static int vga_vram_size; /* Size of video memory */ 98static unsigned long vga_vram_end __read_mostly; /* End of video memory */
99static u16 vga_video_port_reg; /* Video register select port */ 99static unsigned int vga_vram_size __read_mostly; /* Size of video memory */
100static u16 vga_video_port_val; /* Video register value port */ 100static u16 vga_video_port_reg __read_mostly; /* Video register select port */
101static unsigned int vga_video_num_columns; /* Number of text columns */ 101static u16 vga_video_port_val __read_mostly; /* Video register value port */
102static unsigned int vga_video_num_lines; /* Number of text lines */ 102static unsigned int vga_video_num_columns; /* Number of text columns */
103static int vga_can_do_color = 0; /* Do we support colors? */ 103static unsigned int vga_video_num_lines; /* Number of text lines */
104static unsigned int vga_default_font_height;/* Height of default screen font */ 104static int vga_can_do_color __read_mostly; /* Do we support colors? */
105static unsigned char vga_video_type; /* Card type */ 105static unsigned int vga_default_font_height __read_mostly; /* Height of default screen font */
106static unsigned char vga_hardscroll_enabled; 106static unsigned char vga_video_type __read_mostly; /* Card type */
107static unsigned char vga_hardscroll_user_enable = 1; 107static unsigned char vga_hardscroll_enabled __read_mostly;
108static unsigned char vga_hardscroll_user_enable __read_mostly = 1;
108static unsigned char vga_font_is_default = 1; 109static unsigned char vga_font_is_default = 1;
109static int vga_vesa_blanked; 110static int vga_vesa_blanked;
110static int vga_palette_blanked; 111static int vga_palette_blanked;
111static int vga_is_gfx; 112static int vga_is_gfx;
112static int vga_512_chars; 113static int vga_512_chars;
113static int vga_video_font_height; 114static int vga_video_font_height;
114static int vga_scan_lines; 115static int vga_scan_lines __read_mostly;
115static unsigned int vga_rolled_over = 0; 116static unsigned int vga_rolled_over;
116static int vga_init_done;
117 117
118static int __init no_scroll(char *str) 118static int __init no_scroll(char *str)
119{ 119{