diff options
| author | Jiri Slaby <jslaby@suse.cz> | 2016-06-23 07:34:29 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-25 12:04:48 -0400 |
| commit | 6af39ed30264691994647daba07a416830f674b2 (patch) | |
| tree | 19fda746a6892afefc448dc2ed2ee62da74a96f4 /drivers/tty/vt | |
| parent | 52ad1f38b4f6e2f2133668247036ad64ef7ae18a (diff) | |
tty: vt, drop VT_BUF_VRAM_ONLY
It is never defined. And I spent quite some time looking into the
history and cannot find how this was ever used. Given it was not used
in the history, I doubt it currently works as expected after the years
of changes all over the code.
So kill it.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
| -rw-r--r-- | drivers/tty/vt/vt.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index d5d906051613..600c3bb706a5 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
| @@ -278,12 +278,7 @@ static void notify_update(struct vc_data *vc) | |||
| 278 | */ | 278 | */ |
| 279 | 279 | ||
| 280 | #define IS_FG(vc) ((vc)->vc_num == fg_console) | 280 | #define IS_FG(vc) ((vc)->vc_num == fg_console) |
| 281 | |||
| 282 | #ifdef VT_BUF_VRAM_ONLY | ||
| 283 | #define DO_UPDATE(vc) 0 | ||
| 284 | #else | ||
| 285 | #define DO_UPDATE(vc) (CON_IS_VISIBLE(vc) && !console_blanked) | 281 | #define DO_UPDATE(vc) (CON_IS_VISIBLE(vc) && !console_blanked) |
| 286 | #endif | ||
| 287 | 282 | ||
| 288 | static inline unsigned short *screenpos(struct vc_data *vc, int offset, int viewed) | 283 | static inline unsigned short *screenpos(struct vc_data *vc, int offset, int viewed) |
| 289 | { | 284 | { |
| @@ -349,7 +344,6 @@ static void scrdown(struct vc_data *vc, unsigned int t, unsigned int b, int nr) | |||
| 349 | 344 | ||
| 350 | static void do_update_region(struct vc_data *vc, unsigned long start, int count) | 345 | static void do_update_region(struct vc_data *vc, unsigned long start, int count) |
| 351 | { | 346 | { |
| 352 | #ifndef VT_BUF_VRAM_ONLY | ||
| 353 | unsigned int xx, yy, offset; | 347 | unsigned int xx, yy, offset; |
| 354 | u16 *p; | 348 | u16 *p; |
| 355 | 349 | ||
| @@ -390,7 +384,6 @@ static void do_update_region(struct vc_data *vc, unsigned long start, int count) | |||
| 390 | start = vc->vc_sw->con_getxy(vc, start, NULL, NULL); | 384 | start = vc->vc_sw->con_getxy(vc, start, NULL, NULL); |
| 391 | } | 385 | } |
| 392 | } | 386 | } |
| 393 | #endif | ||
| 394 | } | 387 | } |
| 395 | 388 | ||
| 396 | void update_region(struct vc_data *vc, unsigned long start, int count) | 389 | void update_region(struct vc_data *vc, unsigned long start, int count) |
| @@ -413,7 +406,6 @@ static u8 build_attr(struct vc_data *vc, u8 _color, u8 _intensity, u8 _blink, | |||
| 413 | return vc->vc_sw->con_build_attr(vc, _color, _intensity, | 406 | return vc->vc_sw->con_build_attr(vc, _color, _intensity, |
| 414 | _blink, _underline, _reverse, _italic); | 407 | _blink, _underline, _reverse, _italic); |
| 415 | 408 | ||
| 416 | #ifndef VT_BUF_VRAM_ONLY | ||
| 417 | /* | 409 | /* |
| 418 | * ++roman: I completely changed the attribute format for monochrome | 410 | * ++roman: I completely changed the attribute format for monochrome |
| 419 | * mode (!can_do_color). The formerly used MDA (monochrome display | 411 | * mode (!can_do_color). The formerly used MDA (monochrome display |
| @@ -448,9 +440,6 @@ static u8 build_attr(struct vc_data *vc, u8 _color, u8 _intensity, u8 _blink, | |||
| 448 | a <<= 1; | 440 | a <<= 1; |
| 449 | return a; | 441 | return a; |
| 450 | } | 442 | } |
| 451 | #else | ||
| 452 | return 0; | ||
| 453 | #endif | ||
| 454 | } | 443 | } |
| 455 | 444 | ||
| 456 | static void update_attr(struct vc_data *vc) | 445 | static void update_attr(struct vc_data *vc) |
| @@ -470,10 +459,9 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed) | |||
| 470 | 459 | ||
| 471 | count /= 2; | 460 | count /= 2; |
| 472 | p = screenpos(vc, offset, viewed); | 461 | p = screenpos(vc, offset, viewed); |
| 473 | if (vc->vc_sw->con_invert_region) | 462 | if (vc->vc_sw->con_invert_region) { |
| 474 | vc->vc_sw->con_invert_region(vc, p, count); | 463 | vc->vc_sw->con_invert_region(vc, p, count); |
| 475 | #ifndef VT_BUF_VRAM_ONLY | 464 | } else { |
| 476 | else { | ||
| 477 | u16 *q = p; | 465 | u16 *q = p; |
| 478 | int cnt = count; | 466 | int cnt = count; |
| 479 | u16 a; | 467 | u16 a; |
| @@ -501,7 +489,7 @@ void invert_screen(struct vc_data *vc, int offset, int count, int viewed) | |||
| 501 | } | 489 | } |
| 502 | } | 490 | } |
| 503 | } | 491 | } |
| 504 | #endif | 492 | |
| 505 | if (DO_UPDATE(vc)) | 493 | if (DO_UPDATE(vc)) |
| 506 | do_update_region(vc, (unsigned long) p, count); | 494 | do_update_region(vc, (unsigned long) p, count); |
| 507 | notify_update(vc); | 495 | notify_update(vc); |
| @@ -2178,14 +2166,10 @@ static int is_double_width(uint32_t ucs) | |||
| 2178 | /* acquires console_lock */ | 2166 | /* acquires console_lock */ |
| 2179 | static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int count) | 2167 | static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int count) |
| 2180 | { | 2168 | { |
| 2181 | #ifdef VT_BUF_VRAM_ONLY | ||
| 2182 | #define FLUSH do { } while(0); | ||
| 2183 | #else | ||
| 2184 | #define FLUSH if (draw_x >= 0) { \ | 2169 | #define FLUSH if (draw_x >= 0) { \ |
| 2185 | vc->vc_sw->con_putcs(vc, (u16 *)draw_from, (u16 *)draw_to - (u16 *)draw_from, vc->vc_y, draw_x); \ | 2170 | vc->vc_sw->con_putcs(vc, (u16 *)draw_from, (u16 *)draw_to - (u16 *)draw_from, vc->vc_y, draw_x); \ |
| 2186 | draw_x = -1; \ | 2171 | draw_x = -1; \ |
| 2187 | } | 2172 | } |
| 2188 | #endif | ||
| 2189 | 2173 | ||
| 2190 | int c, tc, ok, n = 0, draw_x = -1; | 2174 | int c, tc, ok, n = 0, draw_x = -1; |
| 2191 | unsigned int currcons; | 2175 | unsigned int currcons; |
