summaryrefslogtreecommitdiff
path: root/include/linux/efi.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-12-09 00:12:17 +0200
committerArd Biesheuvel <ardb@kernel.org>2023-01-10 15:16:12 +0100
commit2a5b4ccf0de17e47e9ad13ee0fda9436d5de0a35 (patch)
treeddea0d79cd6463d3e3f12a6af19ac8da6c7ae0ee /include/linux/efi.h
parentb7a1cd243839cc1459fbc83a7a62e3b57f29f497 (diff)
efi/earlycon: Speed up scrolling by disregarding empty space
Currently the scroll copies the full screen which is slow on high resolution displays. At the same time, most of the screen is an empty space which has no need to be copied over and over. Optimize the scrolling algorithm by caching the x coordinates of the last printed lines and scroll in accordance with the maximum x in that cache. On my Microsoft Surface Book (the first version) this produces a significant speedup of the console 90 seconds vs. 168 seconds with the kernel command line having ignore_loglevel earlycon=efifb keep_bootcon Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include/linux/efi.h')
0 files changed, 0 insertions, 0 deletions