~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/tty/vt/vt.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  linux/drivers/char/vt.c
3
 
 *
4
2
 *  Copyright (C) 1991, 1992  Linus Torvalds
5
3
 */
6
4
 
869
867
{
870
868
        unsigned long old_origin, new_origin, new_scr_end, rlth, rrem, err = 0;
871
869
        unsigned long end;
872
 
        unsigned int old_cols, old_rows, old_row_size, old_screen_size;
 
870
        unsigned int old_rows, old_row_size;
873
871
        unsigned int new_cols, new_rows, new_row_size, new_screen_size;
874
872
        unsigned int user;
875
873
        unsigned short *newscreen;
898
896
                return -ENOMEM;
899
897
 
900
898
        old_rows = vc->vc_rows;
901
 
        old_cols = vc->vc_cols;
902
899
        old_row_size = vc->vc_size_row;
903
 
        old_screen_size = vc->vc_screenbuf_size;
904
900
 
905
901
        err = resize_screen(vc, new_cols, new_rows, user);
906
902
        if (err) {
1208
1204
                                              vc->vc_x + 1);
1209
1205
                        }
1210
1206
                        break;
 
1207
                case 3: /* erase scroll-back buffer (and whole display) */
 
1208
                        scr_memsetw(vc->vc_screenbuf, vc->vc_video_erase_char,
 
1209
                                    vc->vc_screenbuf_size >> 1);
 
1210
                        set_origin(vc);
 
1211
                        if (CON_IS_VISIBLE(vc))
 
1212
                                update_screen(vc);
 
1213
                        /* fall through */
1211
1214
                case 2: /* erase whole display */
1212
1215
                        count = vc->vc_cols * vc->vc_rows;
1213
1216
                        start = (unsigned short *)vc->vc_origin;