mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
perf ui browser: No need to switch char sets that often
Just before and after the loop. Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
13d8f96c6c
commit
0458122db0
1 changed files with 5 additions and 3 deletions
|
|
@ -231,13 +231,15 @@ static void ui_browser__scrollbar_set(struct ui_browser *browser)
|
|||
(browser->nr_entries - 1));
|
||||
}
|
||||
|
||||
SLsmg_set_char_set(1);
|
||||
|
||||
while (h < height) {
|
||||
ui_browser__gotorc(browser, row++, col);
|
||||
SLsmg_set_char_set(1);
|
||||
SLsmg_write_char(h == pct ? SLSMG_DIAMOND_CHAR : SLSMG_BOARD_CHAR);
|
||||
SLsmg_set_char_set(0);
|
||||
SLsmg_write_char(h == pct ? SLSMG_DIAMOND_CHAR : SLSMG_CKBRD_CHAR);
|
||||
++h;
|
||||
}
|
||||
|
||||
SLsmg_set_char_set(0);
|
||||
}
|
||||
|
||||
static int __ui_browser__refresh(struct ui_browser *browser)
|
||||
|
|
|
|||
Loading…
Reference in a new issue