fbcon: use kvmalloc() for scrollback buffer

Scrollback frame buffer is rather big - 32K,
so it requires 3rd order page, so let's use kvmalloc() instead of
ordinary kmalloc() for it.

Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Konstantin Khorenko 2019-02-08 19:24:45 +01:00 committed by Bartlomiej Zolnierkiewicz
parent 8e71fa5e4d
commit 23cd78e28a

View File

@ -999,7 +999,7 @@ static const char *fbcon_startup(void)
if (!softback_buf) {
softback_buf =
(unsigned long)
kmalloc(fbcon_softback_size,
kvmalloc(fbcon_softback_size,
GFP_KERNEL);
if (!softback_buf) {
fbcon_softback_size = 0;
@ -1008,7 +1008,7 @@ static const char *fbcon_startup(void)
}
} else {
if (softback_buf) {
kfree((void *) softback_buf);
kvfree((void *) softback_buf);
softback_buf = 0;
softback_top = 0;
}
@ -3672,7 +3672,7 @@ static void fbcon_exit(void)
}
#endif
kfree((void *)softback_buf);
kvfree((void *)softback_buf);
softback_buf = 0UL;
for_each_registered_fb(i) {