diff options
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r-- | drivers/char/vt.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 08151d4de489..de9ebee8657b 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -95,7 +95,6 @@ | |||
95 | #include <linux/timer.h> | 95 | #include <linux/timer.h> |
96 | #include <linux/interrupt.h> | 96 | #include <linux/interrupt.h> |
97 | #include <linux/workqueue.h> | 97 | #include <linux/workqueue.h> |
98 | #include <linux/bootmem.h> | ||
99 | #include <linux/pm.h> | 98 | #include <linux/pm.h> |
100 | #include <linux/font.h> | 99 | #include <linux/font.h> |
101 | #include <linux/bitops.h> | 100 | #include <linux/bitops.h> |
@@ -104,6 +103,7 @@ | |||
104 | #include <linux/io.h> | 103 | #include <linux/io.h> |
105 | #include <asm/system.h> | 104 | #include <asm/system.h> |
106 | #include <linux/uaccess.h> | 105 | #include <linux/uaccess.h> |
106 | #include <linux/kmemleak.h> | ||
107 | 107 | ||
108 | #define MAX_NR_CON_DRIVER 16 | 108 | #define MAX_NR_CON_DRIVER 16 |
109 | 109 | ||
@@ -2875,14 +2875,11 @@ static int __init con_init(void) | |||
2875 | mod_timer(&console_timer, jiffies + blankinterval); | 2875 | mod_timer(&console_timer, jiffies + blankinterval); |
2876 | } | 2876 | } |
2877 | 2877 | ||
2878 | /* | ||
2879 | * kmalloc is not running yet - we use the bootmem allocator. | ||
2880 | */ | ||
2881 | for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) { | 2878 | for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) { |
2882 | vc_cons[currcons].d = vc = alloc_bootmem(sizeof(struct vc_data)); | 2879 | vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT); |
2883 | INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); | 2880 | INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK); |
2884 | visual_init(vc, currcons, 1); | 2881 | visual_init(vc, currcons, 1); |
2885 | vc->vc_screenbuf = (unsigned short *)alloc_bootmem(vc->vc_screenbuf_size); | 2882 | vc->vc_screenbuf = kzalloc(vc->vc_screenbuf_size, GFP_NOWAIT); |
2886 | vc->vc_kmalloced = 0; | 2883 | vc->vc_kmalloced = 0; |
2887 | vc_init(vc, vc->vc_rows, vc->vc_cols, | 2884 | vc_init(vc, vc->vc_rows, vc->vc_cols, |
2888 | currcons || !vc->vc_sw->con_save_screen); | 2885 | currcons || !vc->vc_sw->con_save_screen); |